🎉 1.4.23
✨ Features added-
-
Added
pointerIndexto the parameter list ofpointerLabelComponent. This will help conditionally format the pointerLabelComponent based on pointerIndex.
pointerLabelComponentnow accepts 3 parameters-items,secondaryDataItemandpointerIndex.
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
animateOnDataChangefor Line and Area charts to make the animation smooth.animateOnDataChangeis 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