Skip to content

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

v1.4.48

25 Dec 22:15
dfabcd2
Compare
Choose a tag to compare

🎉 1.4.48 Major Release

✨ Features added-

  1. Added support for barMarginBottom to stacked bar charts. See #126 (comment)
  2. Added the prop customBackground to Bar, Line, Area charts. customBackground is an object with following keys (All of which are optional). See #790

CustomBackground

type CustomBackground = {
  color?: ColorValue
  component?: Function
  horizontalShift?: number
  verticalShift?: number
  height?: number
  width?: number
  widthAdjustment?: number
}
  1. Added the props- focusTogether and focusProximity to Line and Area charts to control the focus behaviour. See #910
  2. BarChart lineConfig with strokeDashArray support. See #927
  3. Added the property resetPointerIndexOnRelease inside pointerConfig to set pointerIndex to -1 upon releasing the pointer. Default value is false. See #854
  4. Added the property activatePointersInstantlyOnTouch inside pointerConfig whose default value is true. When set to false, the pointer will be activated not instantly after touch, but on dragging after touch. See #934

🐛 Bug fixes

  1. Fixed the issue- barMarginBottom not working for Bar charts.
  2. Fixed issue with X-axis label position in stacked bar charts with negative values.
  3. Some fix about vertical lines in Line charts.
  4. Fixed the issue- "LineChart - Strip and Points not showing beyond x index 0 for DataSet". See #911
  5. Fixed the issue- "hidePointer doesn't work". See #932
  6. Fixed the issue- "Custom Data Point in wrong position with non-uniform spacing on data in LineChart" Seehttps://github.com//issues/923
  7. Fixed the issue- "extrapolateMissingValues not working with dataSet". See #916
  8. Fixed the issue- "The first property setting of BarChart/LineChart RulesConfigArray does not take effect". See #893
  9. Fixed the issue- "areaChart2, areaChart3, areaChart4... props not working". See #892
  10. Fixed the issue- "overflowTop parameter behaviour & verticalLinesHeight". See #884
  11. Fixed the issue- "Text formatting for labels not working for the focused Pie". See #886
  12. Fixed the issue- "PieChart focused Pie label styling does not work properly". See #886
  13. Fixed the issue- "Custom data points are not shown on web". See #889

v1.4.47

27 Oct 12:55
43ec330
Compare
Choose a tag to compare

🎉 1.4.47

✨ Features added-

  1. Added the properties hidePointerForMissingValues and hidePointerDataPointForMissingValues to the PointerConfig object. In case there are data items with missing/undefined/null values the library interpolates those values. But if you don't want the pointer to be displayed for such values, you can set the hidePointerForMissingValues property to true. Its default value is false. When hidePointerForMissingValues is set to true, hidePointerDataPointForMissingValues automatically becomes true, unless otherwise specified. See #881

🐛 Bug fixes

  1. The vertical strips shown by using the showStrip property were always shown over the data points, but now they will be shown beneath the data points. This behaviour can be reversed by using the stripOverDataPoints prop.

v1.4.46

21 Oct 20:33
5472745
Compare
Choose a tag to compare

🎉 1.4.46

Added the prop named stripOverDataPoints to Line charts. If set true, the vertical strip appears over the data points, else it appears beneath the data points. See #877

v1.4.45

20 Oct 09:54
e44e394
Compare
Choose a tag to compare

🎉 1.4.45

✨ Features added-

  1. Added the property horizontalStripConfig inside the pointerConfig to create crosshair effect.

🐛 Bug fixes

  1. Fixed the issue- "PieChart is not displayed if there is a huge difference between several values". See #874
  2. Fixed the issue- "App crashes when extrapolateMissingValue is set to false and only the last value is defined". See #871
  3. Fixed the issue- Population pyramid chart with a mid axis has misaligned X-axis labels.
  4. Fixed the issue- Line chart's line is misaligned if dataPointsRadius is large.

v1.4.44

11 Oct 21:06
06d7cfe
Compare
Choose a tag to compare

🎉 1.4.44

✨ Features added-

  1. Added support for different spacing for each line in Line/Area charts. Added the props spacing1, spacing2, spacing3... See #858
  2. Added support for different spacing for each data point in a line in Line/Area charts. Added the spacing property inside the objects of the data and dataSet arrays.
  3. Added the tooltip feature in Pie/Donut charts using the showTooltip prop.

🐛 Bug fixes

  1. Fixed the issue- "yAxisOffset does not work with stackData". See #862
  2. Fixed the issue- zIndex not working for Lines/Curves of the Line/Area charts.
  3. Used scrollAnimation when scrolling to a given index using the scrollToIndex prop. See #859

    Thanks to dannybit for his PR- #860

v1.4.43

29 Sep 21:44
8f7d606
Compare
Choose a tag to compare

🎉 1.4.43

  1. Added onLeftPress and onRightPress props to Population charts. See #855
  2. Fix BarChart crash when maxValue is 0. Thanks to sakisdog for the PR- Abhinandan-Kushwaha/gifted-charts-core#55

v1.4.42

29 Sep 20:54
871b8bd
Compare
Choose a tag to compare

🎉 1.4.42

✨ Features added-

  1. Added 185 screenshot tests to avoid regressions and make the library pixel perfect. See https://abhinandan-kushwaha.github.io/TestingCharts/ss-test/test.html
  2. Added animation to bar charts when the width of bar changes, earlier animation worked only on height change.

🐛 Bug fixes

  1. Fixed the issue- Crash on passing empty data to Bar charts. See #851
  2. Fixed the issue- Line & area charts with pointerConfig blink when animateOnDataChange is true. See #849
  3. Fixed the issue- animateOnDataChange does not work when yAxisOffset is set. See #853
  4. Fixed the issue- Right side y-Axis not working in <LineChartBiColor>. See #847
  5. Fixed all issues with yAxisSide='right' and secondary Y-axis alignment. Wrote thorough screenshot tests relates to Axes and labels.

v1.4.41

17 Sep 16:44
48379a9
Compare
Choose a tag to compare

🎉 1.4.41

Fixed the x-axis alignment issue for animated gradient Bar charts when using xAxisLabelsVerticalShift. Also fixed the extra space at the bottom when using xAxisLabelsVerticalShift.

See #842

v1.4.40

16 Sep 20:16
e900fd9
Compare
Choose a tag to compare

🎉 1.4.40

✨ Features added-

Added the properties dynamicLegendComponent and dynamicLegendContainerStyle inside the pointerConfig object.

dynamicLegendComponent is a property inside the pointerConfig prop, very similar to pointerLabelComponent, the only difference is that it is stationary whereas pointerLabelComponent moves as the pointer moves. You can set the position of the dynamicLegendComponent using the dynamicLegendContainerStyle property inside pointerConfig

You are supposed to assign a callback function to dynamicLegendComponent. The callback function receives 2 parameters-

  1. Array of currently selected items (in case you are rendering a single line, the array will have a single item)
  2. Index of the selected item.
    Note: The legend component appears only as long as the pointer remains remains on the screen. To make the dynamic legend remain persistently on the screen, you can set the persistPointer property to true. The initialPointerIndex property can also be useful.

🐛 Bug fixes

  1. Fixed the issue- autoShiftLabels not working properly. See https://gifted-charts.web.app/barchart/#xAxisShift

  2. Fixed the issue- "Bar alignment issue when using the labelsExtraHeight prop." See #839

v1.4.39

15 Sep 21:45
f86607e
Compare
Choose a tag to compare

🎉 1.4.39

🐛 Bug fixes

  1. Fixed the issue- "onPress pressing/focusing wrong Pie section". It fixes these issues-

    1. #832
    2. #297
    3. #812

      As a part of this fix, removed onLabelPress which is still there in types, but will not be functional. Will try to restore it in future.
  2. Fixed the issue- "Line charts crash if data is an empty array." See #707