v1.4.69
🎉 1.4.69
✨ Features added-
- Added support for tooltip (dataPointLabelComponent) for Line chart inside Bar chart, using the properties
dataPointLabelComponentandshowDataPointLabelOnFocusinside thelineConfigprop. dataPointLabelComponent is a callback function with 2 params- item and index. See #1185
🐛 Bug fixes
-
Fixed the issue - "customDataPoint property breaks the app after updating to Expo SDK 52 and React Native 0.76". See #995
See the refactor below. -
Fixed the issue - "Reduce of empty array with no initial value in piechart". See #169
-
Fixed the issue- "dynamicLegendComponent passes empty array when used with dataSet". See #1184
-
Fixed the issue - "App crash when nullish data is passed to PieChart". See #1150
-
Fixed the issue - "customDataPoint Animation not working in 1.4.63". See #1141
🔨 Refactor
In Line chart, for customDataPoint and dataPointLabelComponent, used <ForeignObject> only for web, and used regular View in case of Android and iOS. This change was needed because ForeignObject from react-native-svg is known to have issues on Android and iOS. This fixes #995.
Also see #1035