v1.4.49
Abhinandan-Kushwaha
released this
26 Dec 22:40
·
61 commits
to master
since this release
🎉 1.4.49
✨ Features added-
- Added the prop
renderDataPointsAfterAnimationEnds
to Line/Area charts to render the data points after the animation has ended. This flag can be helpful ifonPress
does not work in case of multi-line animated charts. See #921
🐛 Bug fixes
- Fixed the issue- "getPointerProps starts from 0 index, regardless of where you press and drag on the LineChart". See #937
- Fixed the issue- "Unable to use multi onPress in LineChart". See #921 and #570
- Fixed the issue- "LineChart 1st data point does not show pointer label if initialSpacing={0}". See #925
🔨 Refactor
Made the value
property of data items optional for Bar and Line/Area charts. Added null safety types for internal calculations, while the <BarChart>
and <LineChart>
components exposed by the library will be capable of accepting null/undefined values as data items, internally it will be conerted to respective nullSafe type after handling the null values (by interpolatio or replacing with 0).
Below are the exposed types and their corresponding null afe types-
Chart Type | Type of data prop |
Corresponding null safe type |
---|---|---|
BarChart | barDataItem[] | barDataItemNullSafe[] |
LineChart | lineDataItem[] | lineDataItemNullSafe[] |
LineChart with dataSet |
DataSet[] | DataSetNullSafe[] |
This refactor fixes the below type-related issues-