Releases: Abhinandan-Kushwaha/react-native-gifted-charts
v1.4.24
🎉 1.4.24
✨ Features added-
-
Line charts can now have data arrays of different lengths. This means that data, data2, data3 don't need to be of same length. Same applies to the sets of dataSet.
-
Added the prop
labelWidth
to stacked Bar charts. Thanks to Nathan Karmer for his PR- #748
🐛 Bug fixes
-
Fixed the issue- Datapoint in secondary lines are incorrect position in pointerConfig. See #749
-
Fixed the issue- Data points visible even if an area chart is hidded under some other area chart.
-
Fixed the issue- Crash due to replacing
findLastIndex
withslice().reverse().findIndex
in gifted-charts-core. I was reversing only the array and forgot to reverse the index. Thanks to dumihi313 for his PR- Abhinandan-Kushwaha/gifted-charts-core#37
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
v1.4.22
Added type declarations (.d.ts files)
v1.4.21
🎉 1.4.21 Mega Release ⭐️
✨ Features added-
- Added the prop
verticalLinesStrokeLinecap
to Bar and Line charts that takes the values'butt'
,'round'
and'square'
('butt'
being the default). See thestroke-linecap
property in svg.
🔨 Refactor
The library now ships js binary obtained after compiling using babel. This should fix all typescript
issues like these-
Note: Since we are now shipping compiled js, you may need to install the gifted-charts-core dependency.