Releases: Abhinandan-Kushwaha/react-native-gifted-charts
v1.4.47
🎉 1.4.47
✨ Features added-
- Added the properties
hidePointerForMissingValues
andhidePointerDataPointForMissingValues
to the PointerConfig object. In case there are data items with missing/undefined/null values the library interpolates those values. But if you don't want the pointer to be displayed for such values, you can set thehidePointerForMissingValues
property to true. Its default value is false. WhenhidePointerForMissingValues
is set to true,hidePointerDataPointForMissingValues
automatically becomes true, unless otherwise specified. See #881
🐛 Bug fixes
- The vertical strips shown by using the
showStrip
property were always shown over the data points, but now they will be shown beneath the data points. This behaviour can be reversed by using thestripOverDataPoints
prop.
v1.4.46
v1.4.45
🎉 1.4.45
✨ Features added-
- Added the property
horizontalStripConfig
inside thepointerConfig
to create crosshair effect.
🐛 Bug fixes
- Fixed the issue- "PieChart is not displayed if there is a huge difference between several values". See #874
- Fixed the issue- "App crashes when extrapolateMissingValue is set to false and only the last value is defined". See #871
- Fixed the issue- Population pyramid chart with a mid axis has misaligned X-axis labels.
- Fixed the issue- Line chart's line is misaligned if dataPointsRadius is large.
v1.4.44
🎉 1.4.44
✨ Features added-
- Added support for different spacing for each line in Line/Area charts. Added the props
spacing1
,spacing2
,spacing3
... See #858 - Added support for different spacing for each data point in a line in Line/Area charts. Added the
spacing
property inside the objects of thedata
anddataSet
arrays. - Added the tooltip feature in Pie/Donut charts using the
showTooltip
prop.
🐛 Bug fixes
v1.4.43
🎉 1.4.43
- Added
onLeftPress
andonRightPress
props to Population charts. See #855 - Fix BarChart crash when maxValue is 0. Thanks to sakisdog for the PR- Abhinandan-Kushwaha/gifted-charts-core#55
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"