UNPKG

4.26 kBMarkdownView Raw
1# Changelog
2
3## v6.4.0
4
5- `ProgressChart` updated to include a condition to divide width by 2 for x value
6
7## v6.2.0
8
9- added `withVerticalLines` and `withHorizontalLines` to `LineChart`
10
11## v6.1.0
12
13- added `scrollableInfoTextDecorator`
14
15## v6.0.0
16
17- Typescript rewrite
18
19## v5.6.1
20
21- fixed linear gradient issue due to `react-native-svg` lib update
22- added handling for datasets data is null to use last line coordinates
23- updated to Expo SDK 37 and add clarification on usage to README.md
24
25## v5.6.0
26
27- added `showValuesOnTopOfBars` prop to `BarChart`
28- fixed decimalPlaces being 0 and not applied in `BarChart`
29
30## v5.5.0
31
32- added `useShadowColorFromDataset` to `chartConfig` to make `LineChart` shadow same as line color
33
34## v5.4.2
35
36- fixed decimalPlaces not being sent with barChart
37
38## v5.4.0
39
40- added strokeWidth & radius as props for ProgressChart
41
42## v5.3.1
43
44- TS type fixes
45
46## v5.3.0
47
48- added missing ContributionGraph props
49- added `withScrollableDot` to LineChart and a whole bunch of props to `chartConfig`. New feature for Line Chart - scrollable dot. It allows to navigate through chart using gesture and see value at dot's current position.
50
51## v5.2.0
52
53- `propsForDots` added to `ChartConfig` interface
54
55## 5.1.1
56
57- add some safe default values in BarChart's `chartConfig` to avoid potential null pointers
58
59## 5.1.0
60
61- added a withDots property to each dataset in LineChart to disable dots on these lines
62- removed `prop-types`
63- added `onDayPress` to ContributionGraph
64
65## 5.0.0
66
67- made ContributionGraph opacity distribution even through range between the min and max values
68- added `getMonthLabel` to ContributionGraph
69- added `yAxisInterval` to LineChart, it allows you to skip vertical lines in the background
70- expaned StackedBarChart if it has no legend
71
72## 4.5.0
73
74- removed `.babelrc` from distribution
75- made decimalPlaces work for StackedBar Chart
76
77## 4.4.0
78
79- added ability to add custom segments on the Y-Axis
80- implemented barRadius config in BarChart
81- added showBarTops prop to BarChart
82
83## 4.3.0
84
85- added `barPercentage?: number; hideLegend: boolean;` props to StackedBarChart
86- added `barRadius` to chart config
87- added `renderDotContent` to LineChart
88
89## 4.2.0
90
91- line chart supports legend
92
93## 4.1.0
94
95- add `hideLegend` to ProgressChart
96
97## v4.0.0
98
99- patched a lot of indirect dependencies
100- improved ProgressChartProps types
101- added item index to some color calls
102- added an optional bottom padding to LineChart
103- POTENTIALLY BREAKING for typescript: added some typedefs to "LineChart", "BarChart", and "StackedBarChart". Also added some typedefs for styles.
104- corrected the line-chart & progress-chart wrong width calculation
105
106## v3.12.0
107
108- added `formatXLabel`, `formatYLabel`, and `getDotProps` to `LineChart`
109
110## v3.11.0
111
112- added optional props: `xAxisLabel`, `yAxisSuffix`, `yLabelsOffset`, `xLabelsOffset`, and `hidePointsAtIndex` to `LineChart`
113- added optional prop `withInnerLines` to `BarChart`
114- added optional `fillShadowGradient` color and `fillShadowGradientOpacity` to chart config for customizing the area under the data points in `LinChart` and `BarChart`
115
116## v3.10.0
117
118- added type for chart config
119- added props config for Dots in the line chart
120
121## v3.9.0
122
123- added propsForLabels to chartConfig
124- added labelColor to chartConfig as a shortcut for propsForLabels / fill
125
126## v3.8.0
127
128- added dot cx, cy in the onDataPointClick functions arguments
129- fixed for horizontal label position when there is only one data point and fromZero prop is true
130
131## v3.7.0
132
133- expose paddingTop and paddingRight via the style prop
134- style the chart background lines with chartConfig's propsForBackgroundLines
135
136## v3.6.0
137
138- added barPercentage property to chartConfig (by @dchirutac)
139- added dot color callback prop (by @stephenc222)
140- added bar chart label rotations (by @stephenc222)
141
142## v3.5.0
143
144- added `horizontalLabelRotation` and `verticalLabelRotation` props to `LineChart`
145
146## v3.4.0
147
148- added `chartConfig` `backgroundGradientFromOpacity` and `backgroundGradientToOpacity`
149
150## 3.3.0
151
152- added `index` to `onDataPointClick`
153
154## 3.2.0
155
156- added optional labels for ProgressChart
157
158## 3.1.0
159
160- added withVerticalLabels and withHorizontalLabels to LineChart, BarChart and StackedBarChart
161
162## 3.0.0
163
164- added typescript types