🎉 1.4.65 Major release
✨ Features added-
-
Added the prop
floatingYAxisLabelsto Bar, Stacked Bar and Line charts that allows us to render the Y-axis labels above the chart content. See #1158 (comment) -
Added the prop
allowFontScalingto Bar, Stacked Bar and Line charts to toggle fontScaling for X and Y-axis label texts. Default value is true. See #1161
🐛 Bug fixes
-
Fixed the issue- "Line chart crashes when using
lineSegmentswith color codes having upper case letters" See #1146 -
Fixed the issue- "Focused Pie color is always 'cyan' if colors are not provided in data."
-
Fixed the issue- "Step chart not following secondary Y-axis". See #1168
-
Fixed the issue- "BarChart tooltip (pointerLabelComponent) appears behind line" See #1169 and #928
-
Fixed the issue- "LineChart - Alignment of x-axis labels after set initialSpacing". See #1052
🔨 Refactor
-
Replaced
LayoutAnimationwith theAnimatedAPI because LayoutAnimation was not working properly with expo. This solves several animation related issues like- -
LineChart inside BarChart is now rendered directly in the
BarChart/index.tsxfile instead ofBarAndLineChartsWrapper. This ensures that the different parts in the BarChart are stacked in the right order- Bars -> Line -> Tooltip -> pointerLabelComponent. (This order can still be modified using thelineBehindBarsprop). This fixes issues like-