Skip to content

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

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

v1.4.38

13 Sep 18:15
3088160
Compare
Choose a tag to compare

🎉 1.4.38

Fixed the issue- "Line chart inside Bar chart misaligned if data contains -ve values"

v1.4.37

13 Sep 18:02
492977f
Compare
Choose a tag to compare

🎉 1.4.37

🐛 Bug fixes

  1. Fixed the issue- "Line charts crashing with error Cannot read property 'isSecondary' of null. See #831

  2. Fixed the issue- "Animations not working for Line charts. See #833"

v1.4.36

12 Sep 22:07
5a5a606
Compare
Choose a tag to compare

🎉 1.4.36

Fixed the issue- "secondary Y-axis offset is not getting considered in the Line chart rendered inside Bar chart using showLine and lineConfig = {{ isSecondary: true }}."

v1.4.35

12 Sep 20:53
7ca484e
Compare
Choose a tag to compare

🎉 1.4.35

✨ Features added-

  1. Added support for secondary Bars using the property isSecondary: true inside the objects of data array. Available in both Bar and Stacked bar charts. See #828

    Also, removed the redundant secondaryData prop from Bar charts.

  2. Auto-compute the params for the secondary Y-axis based on the secondary data range. Applicable for both Bar and Line/Area charts.

These features were implemented with a considerable amount of refactoring which will fix several issues related to secondary data and negative secondary Y axis.

v1.4.34

11 Sep 23:39
a51152a
Compare
Choose a tag to compare

🎉 1.4.34

✨ Features added-

  1. Added the prop extrapolateMissingValues to Line and Area charts to enable/disable the extrapolation of nullish values at the start and end of the chart. The default value of extrapolateMissingValues is true.

    Note that extrapolation will not work if interpolateMissingValues is set to false. Extrapolation works only if interpolation is enabled. See #821

  2. Added the feature to auto scale the Y-axis and auto compute the value of roundToDigits based on the range of values in the data or dataSet. See #825

🐛 Bug fixes

  1. Fixed the issue- "Y-Axis is not showing the labels correctly if we use the prop yAxisLabelTexts and have only one Y-axis (primary or secondary) with a negative value." See #814 (comment)

  2. Fixed the issue- "null value in pointerLabelComponent inside pointerConfig". The pointer label was having undefined value for a few milliseconds after unfocus. See #752

  3. Fixed the issue- Data line is being rendered a little below the x-axis. See #824 (reply in thread)