v1.4.23
🎉 1.4.23
✨ Features added-
-
Added
pointerIndex
to the parameter list ofpointerLabelComponent
. This will help conditionally format the pointerLabelComponent based on pointerIndex.
pointerLabelComponent
now accepts 3 parameters-items
,secondaryDataItem
andpointerIndex
.
One use case would be to position the first and last pointerLabelComponents such that they don't overflow the chart area.
See https://stackoverflow.com/questions/78472182/changer-pointerlable-style-on-a-certain-index-in-react-native-gifted-chart-linec -
Refactored the
animateOnDataChange
for Line and Area charts to make the animation smooth.animateOnDataChange
is now suppported for curved charts as well! See https://stackoverflow.com/questions/78546970/react-native-gifted-charts-not-animating-on-data-change
🔨 Refactor
In gifted-charts-core, replaced findLastIndex()
with slice().reverse().findIndex()
.
See the issue- Abhinandan-Kushwaha/gifted-charts-core#31 and its fix PR- Abhinandan-Kushwaha/gifted-charts-core#33