Skip to content

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

v1.4.56

27 Jan 03:19
9d53757
Compare
Choose a tag to compare

🎉 1.4.56

✨ Features added-

1. Highlight

Added the feature to highlight a particular Bar, Bar-section (in stacked Bar chart) or Line in Bar charts using the below props-

  • highlightEnabled
  • highlightedBarIndex
  • lowlightOpacity
  • stackHighlightEnabled
  • highlightedStackIndex

The above chart is rendered using the stackHighlightEnabled and highlightedStackIndex props.

2. Added the below props to Bar charts (earlier available only for Line charts)-

  • onTouchStart
  • onTouchEnd
  • onResponderGrant
  • onResponderMove
  • onResponderEnd
  • onPointerEnter
  • onPointerLeave

🐛 Bug fixes

  1. Fixed the issue- "Dataset Lines rendering incorrectly when lengths don't match". See #975
  2. Fixed the issue- "onPress for Pie charts on web not working on large screens. See #969 (comment)
  3. Fixed the issue- "onFocus callback always receives last line". Thanks to brimby for his PR Abhinandan-Kushwaha/gifted-charts-core#73
  4. Fixed the issue- "focusProximity not working for dataSets." See Abhinandan-Kushwaha/gifted-charts-core#73 (comment)

v1.4.55

19 Jan 15:42
02f8727
Compare
Choose a tag to compare

🎉 1.4.55

✨ Features added-

  1. Added the below properties to the pointerConfig prop in Line/Area charts, all of which are callback functions. See #968
  • onTouchStart
  • onTouchEnd
  • onResponderGrant
  • onResponderMove
  • onResponderEnd
  • onPointerEnter
  • onPointerLeave

🐛 Bug fixes

  1. Fixed the issue - Pie chart onPress, focusOnPress event is not working on expo web. See #969 and #800

  2. Fixed the issue- Unable to use the Gifted Charts Pointer within a React Native Tab View (using onTouchStart and onTouchEnd in the pointerConfig object). See #968

--

1.4.54

11 Jan 22:45
df1b1d5
Compare
Choose a tag to compare

🎉 1.4.54

✨ Features added-

  1. Added strokeLinecap to Line charts to support 'butt' | 'square' | 'round' linecaps. See #961

    Following props have been added-
  • strokeLinecap
  • strokeLinecap1
  • strokeLinecap2
  • strokeLinecap3
  • strokeLinecap4
  • strokeLinecap5
  • Added the strokeLinecap property in secondaryLineConfig and in the items of dataSet array
  1. Added support for animation in Radar charts. Following props have been added-
  • isAnimated
  • animationDuration (default 800)
  • animateTogether (default false)
  • Added the isAnimated and animationDuration properties in the objects of polygonConfigArray

v1.4.53

06 Jan 23:17
d4d8dde
Compare
Choose a tag to compare

v1.4.53

✨ Features added-

  1. Added support for multi-radar charts using the prop dataSet in place of data. dataSet is a 2D array while data is 1D. Added the below props to the <RadarChart> component-
  • dataLabelsArray
  • polygonConfigArray
  • dataLabelsConfigSet

🐛 Bug fixes

  1. Fixed the issue - "Line Chart with line segments doesn't work when enabling stepChart". See #950
  2. Fixed the dataPointLabelComponent width issue. See #955
  3. Fixed the issue - "LineChart - Strip not showing after certain x datapoints, using data prop" Thanks to Lucas Brumatti for his PR - #954
  4. Fixed the issue- "ExtrapolateMissingValues bug depending on line direction". See #953

1.4.51

01 Jan 22:04
6c9ceeb
Compare
Choose a tag to compare

🎉 1.4.51

Added support for Radar charts using <RadarChart> component. See Radar chart props

v1.4.50

29 Dec 18:12
7a275d8
Compare
Choose a tag to compare

🎉 1.4.50

🐛 Bug fixes

  1. Fixed issue with tooltips in Bar and Stacked Bar charts.
  2. Fixed issue with customDataPoint, dataPointLabelComponent and focusedDataPointLabelComponent in Line/Area charts and enhanced the focus related functionality.

🔨 Refactor

  1. Moved tooltip related logic to gifted-charts-core
  2. Moved focus related logic for Line/Area charts to gifted-charts-core
  3. Exported a few more types from gifted-charts-core and exposed them from react-native-gifted-charts

v1.4.49

26 Dec 22:40
090891c
Compare
Choose a tag to compare

🎉 1.4.49

✨ Features added-

  1. Added the prop renderDataPointsAfterAnimationEnds to Line/Area charts to render the data points after the animation has ended. This flag can be helpful if onPress does not work in case of multi-line animated charts. See #921

🐛 Bug fixes

  1. Fixed the issue- "getPointerProps starts from 0 index, regardless of where you press and drag on the LineChart". See #937
  2. Fixed the issue- "Unable to use multi onPress in LineChart". See #921 and #570
  3. Fixed the issue- "LineChart 1st data point does not show pointer label if initialSpacing={0}". See #925

🔨 Refactor

Made the value property of data items optional for Bar and Line/Area charts. Added null safety types for internal calculations, while the <BarChart> and <LineChart> components exposed by the library will be capable of accepting null/undefined values as data items, internally it will be conerted to respective nullSafe type after handling the null values (by interpolatio or replacing with 0).
Below are the exposed types and their corresponding null afe types-

Chart Type Type of data prop Corresponding null safe type
BarChart barDataItem[] barDataItemNullSafe[]
LineChart lineDataItem[] lineDataItemNullSafe[]
LineChart with dataSet DataSet[] DataSetNullSafe[]

This refactor fixes the below type-related issues-

  1. #787
  2. #781

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