Skip to content

Releases: Abhinandan-Kushwaha/react-native-gifted-charts

v1.4.70

07 Dec 18:19
53578c1

Choose a tag to compare

🎉 1.4.70

✨ Features added-

  1. Made the Pie and donut charts rotatable using the rotatable prop.
rotatePie rotate3D

🐛 Bug fixes

  1. Fixed the issue- "Line chart inside Bar and Stacked Bar charts, if set to isSecondary, does not follow stepValue, noOfSections provided in secondaryYAxis". See #1187

  2. Fixed the issue- "Error: Cannot read property 'hidePointer' of undefined" on empty LineChart". See #1152

  3. Fixed the issue- "Selecting a stack bar does not currently work, as setSelectedIndex is wrongly setting a number instead of an array." Thanks to Louis Zawadzki for his PR - #1189

  4. Fixed- "functionality issue for toggleFocusOnPress prop and incorrect color issue for focusOnPress prop in PieChart component". Thanks to Sri Harsha D V for his PR - #1072.

    This fixes- #1087

  5. Fixed the issue- "focusedPieIndex not working."

🔨 Refactor

  1. 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

29 Nov 19:57
dd4a547

Choose a tag to compare

🎉 1.4.69

✨ Features added-

  1. Added support for tooltip (dataPointLabelComponent) for Line chart inside Bar chart, using the properties dataPointLabelComponent and showDataPointLabelOnFocus inside the lineConfig prop. dataPointLabelComponent is a callback function with 2 params- item and index. See #1185

🐛 Bug fixes

  1. 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.

  2. Fixed the issue - "Reduce of empty array with no initial value in piechart". See #169

  3. Fixed the issue- "dynamicLegendComponent passes empty array when used with dataSet". See #1184

  4. Fixed the issue - "App crash when nullish data is passed to PieChart". See #1150

  5. 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

23 Nov 18:23
bf075e8

Choose a tag to compare

🎉 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?: Linecap

These can be used to control the properties of individual vertical lines of each data item.

See #1181

v1.4.67

22 Nov 20:03
5e531f1

Choose a tag to compare

🎉 1.4.67

✨ Features added-

  1. 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 type ColorFromToY described below-
type ColorFromToY = {
  from: number
  to: number
  color: ColorValue
}

See #1165 and #1179

multiColorY

🐛 Bug fixes

  1. Fixed the issue- "BarChart tooltip appears behind line". See #1177 and #1169 (comment)

  2. Fixed the issue- "using negativeStepValue shows -ve values also as +ve for Line charts". This bug was introduced in version 1.4.64. See https://github.com/Abhinandan-Kushwaha/gifted-charts-core/pull/93/files#r2553125329

  3. Fixed the issue in Bar Charts- "using a -ve value for the negativeStepValue prop hides the -ve bars".

v1.4.66

18 Nov 17:45
739ab31

Choose a tag to compare

🎉 1.4.66

✨ Features added-

  1. Added the props startAngle and isClockWise to Radar chart. See #1173

🐛 Bug fixes

  1. 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

  2. Fixed the issue- "minHeight for the BarChart is not working for negative values". See #1174

  3. 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

  4. Fixed the issue- "PopulationPyramid X-axis labels are clipped when using xAxisLabelShiftY". Thanks to sky603629 for his suggestion. See sky603629

v1.4.65

09 Nov 21:01
d29d2e3

Choose a tag to compare

🎉 1.4.65 Major release

✨ Features added-

  1. Added the prop floatingYAxisLabels to Bar, Stacked Bar and Line charts that allows us to render the Y-axis labels above the chart content. See #1158 (comment)

  2. Added the prop allowFontScaling to Bar, Stacked Bar and Line charts to toggle fontScaling for X and Y-axis label texts. Default value is true. See #1161

🐛 Bug fixes

  1. Fixed the issue- "Line chart crashes when using lineSegments with color codes having upper case letters" See #1146

  2. Fixed the issue- "Focused Pie color is always 'cyan' if colors are not provided in data."

  3. Fixed the issue- "Step chart not following secondary Y-axis". See #1168

  4. Fixed the issue- "BarChart tooltip (pointerLabelComponent) appears behind line" See #1169 and #928

  5. Fixed the issue- "LineChart - Alignment of x-axis labels after set initialSpacing". See #1052

🔨 Refactor

  1. Replaced LayoutAnimation with the Animated API because LayoutAnimation was not working properly with expo. This solves several animation related issues like-

  2. LineChart inside BarChart is now rendered directly in the BarChart/index.tsx file instead of BarAndLineChartsWrapper. 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 the lineBehindBars prop). This fixes issues like-

v1.4.64

26 Aug 20:00
a453980

Choose a tag to compare

🎉 1.4.64

🐛 Bug fixes

  1. Fixed the issue- "Pie - Donut inner view absorbs onPress events on pie". See #1131

  2. Fixed the issue- "PieChart does not render when all values are zero". See #1137

  3. Fixed the issue- "negativeStepValue does not reflect". See #1107

v1.4.63

12 Jul 08:53
aed2ac5

Choose a tag to compare

🎉 1.4.63

🐛 Bug fixes

  1. Fixed the issue- "pointerConfig and pointerLabelComponent doesn't work properly with Stacked Bar Chart".
    Thanks to Anna Conti for her PR - #1123
    See #1117

  2. Fixed the issue- "trimYAxisAtTop not working for LineChartBicolor. See #1125

  3. Added yAxisExtraHeightAtTop to 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

08 Jul 20:15
f96b270

Choose a tag to compare

🎉 1.4.62

✨ Features added-

  1. Added support for spread (or ranged) area chart using the props spreadAreaData, spreadAreaColor and spreadAreaOpacity. 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

  1. Fixed the issue- endIndex startIndex not working properly for area chart gradient.

    Thanks to Anna Conti for her PR - #1110
    See #1105

  2. Added uniqueId for LineChart area gradient to fix issue in web - multiple color gradients.
    Thanks to Anna Conti for her PR - #1108

  3. Removed background pattern margin (of 1 px).
    Thanks to Christoph for his PR - #1113

  4. Changed the default value of labelsPositionOffset from 5 to 0 (in gifted-charts-core), to fix the issue - "RadarChart labels don't work on small numbers".
    See #1094

v1.4.61

04 May 22:55
f57368e

Choose a tag to compare

🎉 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