Releases: Abhinandan-Kushwaha/react-native-gifted-charts
v1.4.43
v1.4.42
🎉 1.4.42
✨ Features added-
- Added 185 screenshot tests to avoid regressions and make the library pixel perfect. See https://abhinandan-kushwaha.github.io/TestingCharts/ss-test/test.html
- Added animation to bar charts when the width of bar changes, earlier animation worked only on height change.
🐛 Bug fixes
- Fixed the issue- Crash on passing empty data to Bar charts. See #851
- Fixed the issue- Line & area charts with
pointerConfig
blink whenanimateOnDataChange
is true. See #849 - Fixed the issue-
animateOnDataChange
does not work when yAxisOffset is set. See #853 - Fixed the issue- Right side y-Axis not working in
<LineChartBiColor>
. See #847 - Fixed all issues with yAxisSide='right' and secondary Y-axis alignment. Wrote thorough screenshot tests relates to Axes and labels.
v1.4.41
v1.4.40
🎉 1.4.40
✨ Features added-
Added the properties dynamicLegendComponent
and dynamicLegendContainerStyle
inside the pointerConfig object.
dynamicLegendComponent is a property inside the pointerConfig prop, very similar to pointerLabelComponent
, the only difference is that it is stationary whereas pointerLabelComponent moves as the pointer moves. You can set the position of the dynamicLegendComponent using the dynamicLegendContainerStyle
property inside pointerConfig
You are supposed to assign a callback function to dynamicLegendComponent. The callback function receives 2 parameters-
- Array of currently selected items (in case you are rendering a single line, the array will have a single item)
- Index of the selected item.
Note: The legend component appears only as long as the pointer remains remains on the screen. To make the dynamic legend remain persistently on the screen, you can set thepersistPointer
property to true. TheinitialPointerIndex
property can also be useful.
🐛 Bug fixes
-
Fixed the issue-
autoShiftLabels
not working properly. See https://gifted-charts.web.app/barchart/#xAxisShift -
Fixed the issue- "Bar alignment issue when using the
labelsExtraHeight
prop." See #839
v1.4.39
🎉 1.4.39
🐛 Bug fixes
-
Fixed the issue- "onPress pressing/focusing wrong Pie section". It fixes these issues-
-
Fixed the issue- "Line charts crash if data is an empty array." See #707
v1.4.38
🎉 1.4.38
Fixed the issue- "Line chart inside Bar chart misaligned if data contains -ve values"
v1.4.37
v1.4.36
🎉 1.4.36
Fixed the issue- "secondary Y-axis offset is not getting considered in the Line chart rendered inside Bar chart using showLine
and lineConfig = {{ isSecondary: true }}
."
v1.4.35
🎉 1.4.35
✨ Features added-
-
Added support for secondary Bars using the property
isSecondary: true
inside the objects of data array. Available in both Bar and Stacked bar charts. See #828
Also, removed the redundantsecondaryData
prop from Bar charts. -
Auto-compute the params for the secondary Y-axis based on the secondary data range. Applicable for both Bar and Line/Area charts.
These features were implemented with a considerable amount of refactoring which will fix several issues related to secondary data and negative secondary Y axis.
v1.4.34
🎉 1.4.34
✨ Features added-
-
Added the prop
extrapolateMissingValues
to Line and Area charts to enable/disable the extrapolation of nullish values at the start and end of the chart. The default value ofextrapolateMissingValues
is true.
Note that extrapolation will not work ifinterpolateMissingValues
is set to false. Extrapolation works only if interpolation is enabled. See #821 -
Added the feature to auto scale the Y-axis and auto compute the value of
roundToDigits
based on the range of values in the data or dataSet. See #825
🐛 Bug fixes
-
Fixed the issue- "Y-Axis is not showing the labels correctly if we use the prop
yAxisLabelTexts
and have only one Y-axis (primary or secondary) with a negative value." See #814 (comment) -
Fixed the issue- "null value in pointerLabelComponent inside pointerConfig". The pointer label was having undefined value for a few milliseconds after unfocus. See #752
-
Fixed the issue- Data line is being rendered a little below the x-axis. See #824 (reply in thread)