Skip to content

v1.4.49

Compare
Choose a tag to compare
@Abhinandan-Kushwaha Abhinandan-Kushwaha released this 26 Dec 22:40
· 61 commits to master since this release
090891c

🎉 1.4.49

✨ Features added-

  1. Added the prop renderDataPointsAfterAnimationEnds to Line/Area charts to render the data points after the animation has ended. This flag can be helpful if onPress does not work in case of multi-line animated charts. See #921

🐛 Bug fixes

  1. Fixed the issue- "getPointerProps starts from 0 index, regardless of where you press and drag on the LineChart". See #937
  2. Fixed the issue- "Unable to use multi onPress in LineChart". See #921 and #570
  3. 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-

  1. #787
  2. #781