Releases: Abhinandan-Kushwaha/react-native-gifted-charts
v1.4.56
🎉 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
- Fixed the issue- "Dataset Lines rendering incorrectly when lengths don't match". See #975
- Fixed the issue- "
onPress
for Pie charts on web not working on large screens. See #969 (comment) - Fixed the issue- "onFocus callback always receives last line". Thanks to brimby for his PR Abhinandan-Kushwaha/gifted-charts-core#73
- Fixed the issue- "
focusProximity
not working fordataSets
." See Abhinandan-Kushwaha/gifted-charts-core#73 (comment)
v1.4.55
🎉 1.4.55
✨ Features added-
- 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
-
Fixed the issue - Pie chart onPress, focusOnPress event is not working on expo web. See #969 and #800
-
Fixed the issue- Unable to use the Gifted Charts Pointer within a React Native Tab View (using
onTouchStart
andonTouchEnd
in the pointerConfig object). See #968
--
1.4.54
🎉 1.4.54
✨ Features added-
- 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 insecondaryLineConfig
and in the items ofdataSet
array
- Added support for animation in
Radar
charts. Following props have been added-
- isAnimated
- animationDuration (default 800)
- animateTogether (default false)
- Added the
isAnimated
andanimationDuration
properties in the objects ofpolygonConfigArray
v1.4.53
v1.4.53
✨ Features added-
- Added support for multi-radar charts using the prop
dataSet
in place ofdata
. dataSet is a 2D array while data is 1D. Added the below props to the<RadarChart>
component-
- dataLabelsArray
- polygonConfigArray
- dataLabelsConfigSet
🐛 Bug fixes
- Fixed the issue - "Line Chart with line segments doesn't work when enabling
stepChart
". See #950 - Fixed the dataPointLabelComponent width issue. See #955
- Fixed the issue - "LineChart - Strip not showing after certain x datapoints, using data prop" Thanks to Lucas Brumatti for his PR - #954
- Fixed the issue- "ExtrapolateMissingValues bug depending on line direction". See #953
1.4.51
🎉 1.4.51
Added support for Radar charts using <RadarChart>
component. See Radar chart props
v1.4.50
🎉 1.4.50
🐛 Bug fixes
- Fixed issue with tooltips in Bar and Stacked Bar charts.
- Fixed issue with
customDataPoint
,dataPointLabelComponent
andfocusedDataPointLabelComponent
in Line/Area charts and enhanced the focus related functionality.
🔨 Refactor
- Moved tooltip related logic to gifted-charts-core
- Moved focus related logic for Line/Area charts to gifted-charts-core
- Exported a few more types from gifted-charts-core and exposed them from react-native-gifted-charts
v1.4.49
🎉 1.4.49
✨ Features added-
- Added the prop
renderDataPointsAfterAnimationEnds
to Line/Area charts to render the data points after the animation has ended. This flag can be helpful ifonPress
does not work in case of multi-line animated charts. See #921
🐛 Bug fixes
- Fixed the issue- "getPointerProps starts from 0 index, regardless of where you press and drag on the LineChart". See #937
- Fixed the issue- "Unable to use multi onPress in LineChart". See #921 and #570
- 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-
v1.4.48
🎉 1.4.48 Major Release
✨ Features added-
- Added support for
barMarginBottom
to stacked bar charts. See #126 (comment) - 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
}
- Added the props-
focusTogether
andfocusProximity
to Line and Area charts to control the focus behaviour. See #910 - BarChart lineConfig with strokeDashArray support. See #927
- Added the property
resetPointerIndexOnRelease
insidepointerConfig
to set pointerIndex to -1 upon releasing the pointer. Default value isfalse
. See #854 - Added the property
activatePointersInstantlyOnTouch
insidepointerConfig
whose default value istrue
. When set to false, the pointer will be activated not instantly after touch, but on dragging after touch. See #934
🐛 Bug fixes
- Fixed the issue-
barMarginBottom
not working for Bar charts. - Fixed issue with X-axis label position in stacked bar charts with negative values.
- Some fix about vertical lines in Line charts.
- Fixed the issue- "LineChart - Strip and Points not showing beyond x index 0 for DataSet". See #911
- Fixed the issue- "hidePointer doesn't work". See #932
- Fixed the issue- "Custom Data Point in wrong position with non-uniform spacing on data in LineChart" Seehttps://github.com//issues/923
- Fixed the issue- "extrapolateMissingValues not working with dataSet". See #916
- Fixed the issue- "The first property setting of BarChart/LineChart RulesConfigArray does not take effect". See #893
- Fixed the issue- "areaChart2, areaChart3, areaChart4... props not working". See #892
- Fixed the issue- "overflowTop parameter behaviour & verticalLinesHeight". See #884
- Fixed the issue- "Text formatting for labels not working for the focused Pie". See #886
- Fixed the issue- "PieChart focused Pie label styling does not work properly". See #886
- Fixed the issue- "Custom data points are not shown on web". See #889
v1.4.47
🎉 1.4.47
✨ Features added-
- Added the properties
hidePointerForMissingValues
andhidePointerDataPointForMissingValues
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 thehidePointerForMissingValues
property to true. Its default value is false. WhenhidePointerForMissingValues
is set to true,hidePointerDataPointForMissingValues
automatically becomes true, unless otherwise specified. See #881
🐛 Bug fixes
- 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 thestripOverDataPoints
prop.