Releases: Abhinandan-Kushwaha/react-native-gifted-charts
v1.4.70
🎉 1.4.70
✨ Features added-
- Made the Pie and donut charts rotatable using the
rotatableprop.
🐛 Bug fixes
-
Fixed the issue- "Line chart inside Bar and Stacked Bar charts, if set to
isSecondary, does not follow stepValue, noOfSections provided insecondaryYAxis". See #1187 -
Fixed the issue- "Error: Cannot read property 'hidePointer' of undefined" on empty LineChart". See #1152
-
Fixed the issue- "Selecting a stack bar does not currently work, as
setSelectedIndexis wrongly setting a number instead of an array." Thanks to Louis Zawadzki for his PR - #1189 -
Fixed- "functionality issue for
toggleFocusOnPressprop and incorrect color issue forfocusOnPressprop in PieChart component". Thanks to Sri Harsha D V for his PR - #1072.
This fixes- #1087 -
Fixed the issue- "
focusedPieIndexnot working."
🔨 Refactor
- Changed the default Pie and donut colors from bright colors like cyan, orange, purple etc to different shades of gray. Also set the the default text color in Pie and donut charts to black.
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
v1.4.68
🎉 1.4.68
Added the below properties to the data items of Bar, Stacked Bar and Line and Area charts-
showVerticalLine?: boolean
verticalLineThickness?: number
verticalLineHeight?: number
verticalLineColor?: ColorValue
verticalLineStrokeDashArray?: number[]
verticalLineShift?: number
verticalLineZIndex?: number
verticalLineSpacing?: number
verticalLineStrokeLinecap?: LinecapThese can be used to control the properties of individual vertical lines of each data item.
See #1181
v1.4.67
🎉 1.4.67
✨ Features added-
- Added the feature "Multicolor line chart based on y-axis value range". Added a new prop named
colors, which accepts an array of objects of typeColorFromToYdescribed below-
type ColorFromToY = {
from: number
to: number
color: ColorValue
}🐛 Bug fixes
-
Fixed the issue- "BarChart tooltip appears behind line". See #1177 and #1169 (comment)
-
Fixed the issue- "using
negativeStepValueshows -ve values also as +ve for Line charts". This bug was introduced in version1.4.64. See https://github.com/Abhinandan-Kushwaha/gifted-charts-core/pull/93/files#r2553125329 -
Fixed the issue in Bar Charts- "using a -ve value for the
negativeStepValueprop hides the -ve bars".
v1.4.66
🎉 1.4.66
✨ Features added-
- Added the props
startAngleandisClockWiseto Radar chart. See #1173
🐛 Bug fixes
-
Fixed the issue- "Unable to show line on Combined Bar and Line chart". See https://stackoverflow.com/questions/79822900/unable-to-show-line-on-combined-bar-and-line-chart-on-react-native-gifted-charts
-
Fixed the issue- "
minHeightfor the BarChart is not working for negative values". See #1174 -
Fixed the issue- "LIneChart - React crashes if dataset changes from from empty to have items". Thanks to Sondre Lucas Follesø for his PR - Abhinandan-Kushwaha/gifted-charts-core#94
-
Fixed the issue- "PopulationPyramid X-axis labels are clipped when using xAxisLabelShiftY". Thanks to sky603629 for his suggestion. See sky603629
v1.4.65
🎉 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-
v1.4.64
v1.4.63
🎉 1.4.63
🐛 Bug fixes
-
Fixed the issue- "pointerConfig and pointerLabelComponent doesn't work properly with Stacked Bar Chart".
Thanks to Anna Conti for her PR - #1123
See #1117 -
Fixed the issue- "
trimYAxisAtTopnot working for LineChartBicolor. See #1125 -
Added
yAxisExtraHeightAtTopto LineChartBiColor (earlier it was available only to Bar and Line charts).
🔨 Refactor
Added types to style related props. Thanks to Seyed Mostafa Hasani for his PRs-
v1.4.62
🎉 1.4.62
✨ Features added-
- Added support for spread (or ranged) area chart using the props
spreadAreaData,spreadAreaColorandspreadAreaOpacity. Thanks to Sadat Taseen for his PR - #1104
See #1093
See this Stackoverflow question- https://stackoverflow.com/questions/65683564/fusioncharts-area-range-graph-with-line
🐛 Bug fixes
-
Fixed the issue-
endIndexstartIndexnot working properly for area chart gradient.
Thanks to Anna Conti for her PR - #1110
See #1105 -
Added uniqueId for LineChart area gradient to fix issue in web - multiple color gradients.
Thanks to Anna Conti for her PR - #1108 -
Removed background pattern margin (of 1 px).
Thanks to Christoph for his PR - #1113 -
Changed the default value of
labelsPositionOffsetfrom 5 to 0 (in gifted-charts-core), to fix the issue - "RadarChart labels don't work on small numbers".
See #1094
v1.4.61
🎉 1.4.61
Added support for multi-focus and multi-highlight in Bar charts. focusedBarIndex and highlightedBarIndex now accept number as well as array of numbers. This allows multiple bars to be focused or highlighted at the same time.
See- #1083
Tons of thanks to Shubham Pawar for his PRs- #1084 and Abhinandan-Kushwaha/gifted-charts-core#83



