react-native-chart-kit 6.11.0 → 6.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "react-native-chart-kit",
3
- "version": "6.11.0",
3
+ "version": "6.12.1",
4
4
  "devDependencies": {
5
- "@types/react": "^16.9.38",
5
+ "@types/react": "16.14.8",
6
6
  "@types/react-native": "^0.62.13",
7
7
  "babel-eslint": "10.x",
8
8
  "babel-plugin-module-resolver": "^3.1.1",
@@ -25,7 +25,7 @@
25
25
  "react-native-scrollable-tab-view": "^1.0.0",
26
26
  "react-native-svg": "11.0.1",
27
27
  "react-test-renderer": "16.7.0",
28
- "typescript": "^3.9.5"
28
+ "typescript": "^5.4.5"
29
29
  },
30
30
  "_main": "./node_modules/expo/AppEntry.js",
31
31
  "main": "./dist/index.js",
@@ -39,9 +39,10 @@
39
39
  "android": "expo start --android",
40
40
  "ios": "expo start --ios",
41
41
  "test": "jest",
42
+ "typecheck": "tsc --noEmit",
42
43
  "build": "tsc",
43
44
  "dev": "tsc --watch",
44
- "prepublish": "yarn build"
45
+ "prepare": "npm run build"
45
46
  },
46
47
  "jest": {
47
48
  "preset": "jest-expo"
@@ -60,5 +61,17 @@
60
61
  "hooks": {
61
62
  "pre-commit": "pretty-quick --staged"
62
63
  }
64
+ },
65
+ "license": "MIT",
66
+ "homepage": "https://github.com/indiespirit/react-native-chart-kit",
67
+ "repository": {
68
+ "type": "git",
69
+ "url": "git+https://github.com/indiespirit/react-native-chart-kit.git"
70
+ },
71
+ "overrides": {
72
+ "@types/react": "16.14.8"
73
+ },
74
+ "resolutions": {
75
+ "@types/react": "16.14.8"
63
76
  }
64
77
  }
package/CHANGELOG.md DELETED
@@ -1,193 +0,0 @@
1
- # Changelog
2
-
3
- ## v6.11
4
-
5
- - added a prop to customize vertical labels heigh
6
- - use full width when legend is hidden in StackedBarChart
7
- - added custom Y labels in StackedBarChart
8
-
9
- ## v6.8.0
10
-
11
- - use same colors in `ProgressChart` legend if `withCustomBarColorFromData` is set
12
-
13
- ## v6.7.0
14
-
15
- - allowed usage of custom color for each bar on ProgressChart
16
- - allowed usage of custom color for each bar on BarChart
17
- - fixed to display the correct height bar even if changing the "height" of the props in StackedBar
18
- - added indexData prop for renderDotContent
19
-
20
- ## v6.6.0
21
-
22
- - added `propsForVerticalLabels` and `propsForHorizontalLabels`
23
-
24
- ## v6.5.0
25
-
26
- - added `StackedBarChart` `percentile` stacking
27
-
28
- ## v6.4.1
29
-
30
- - added `PieChart` props `avoidFalseZero`
31
-
32
- ## v6.4.0
33
-
34
- - `ProgressChart` updated to include a condition to divide width by 2 for x value
35
-
36
- ## v6.2.0
37
-
38
- - added `withVerticalLines` and `withHorizontalLines` to `LineChart`
39
-
40
- ## v6.1.0
41
-
42
- - added `scrollableInfoTextDecorator`
43
-
44
- ## v6.0.0
45
-
46
- - Typescript rewrite
47
-
48
- ## v5.6.1
49
-
50
- - fixed linear gradient issue due to `react-native-svg` lib update
51
- - added handling for datasets data is null to use last line coordinates
52
- - updated to Expo SDK 37 and add clarification on usage to README.md
53
-
54
- ## v5.6.0
55
-
56
- - added `showValuesOnTopOfBars` prop to `BarChart`
57
- - fixed decimalPlaces being 0 and not applied in `BarChart`
58
-
59
- ## v5.5.0
60
-
61
- - added `useShadowColorFromDataset` to `chartConfig` to make `LineChart` shadow same as line color
62
-
63
- ## v5.4.2
64
-
65
- - fixed decimalPlaces not being sent with barChart
66
-
67
- ## v5.4.0
68
-
69
- - added strokeWidth & radius as props for ProgressChart
70
-
71
- ## v5.3.1
72
-
73
- - TS type fixes
74
-
75
- ## v5.3.0
76
-
77
- - added missing ContributionGraph props
78
- - 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.
79
-
80
- ## v5.2.0
81
-
82
- - `propsForDots` added to `ChartConfig` interface
83
-
84
- ## 5.1.1
85
-
86
- - add some safe default values in BarChart's `chartConfig` to avoid potential null pointers
87
-
88
- ## 5.1.0
89
-
90
- - added a withDots property to each dataset in LineChart to disable dots on these lines
91
- - removed `prop-types`
92
- - added `onDayPress` to ContributionGraph
93
-
94
- ## 5.0.0
95
-
96
- - made ContributionGraph opacity distribution even through range between the min and max values
97
- - added `getMonthLabel` to ContributionGraph
98
- - added `yAxisInterval` to LineChart, it allows you to skip vertical lines in the background
99
- - expaned StackedBarChart if it has no legend
100
-
101
- ## 4.5.0
102
-
103
- - removed `.babelrc` from distribution
104
- - made decimalPlaces work for StackedBar Chart
105
-
106
- ## 4.4.0
107
-
108
- - added ability to add custom segments on the Y-Axis
109
- - implemented barRadius config in BarChart
110
- - added showBarTops prop to BarChart
111
-
112
- ## 4.3.0
113
-
114
- - added `barPercentage?: number; hideLegend: boolean;` props to StackedBarChart
115
- - added `barRadius` to chart config
116
- - added `renderDotContent` to LineChart
117
-
118
- ## 4.2.0
119
-
120
- - line chart supports legend
121
-
122
- ## 4.1.0
123
-
124
- - add `hideLegend` to ProgressChart
125
-
126
- ## v4.0.0
127
-
128
- - patched a lot of indirect dependencies
129
- - improved ProgressChartProps types
130
- - added item index to some color calls
131
- - added an optional bottom padding to LineChart
132
- - POTENTIALLY BREAKING for typescript: added some typedefs to "LineChart", "BarChart", and "StackedBarChart". Also added some typedefs for styles.
133
- - corrected the line-chart & progress-chart wrong width calculation
134
-
135
- ## v3.12.0
136
-
137
- - added `formatXLabel`, `formatYLabel`, and `getDotProps` to `LineChart`
138
-
139
- ## v3.11.0
140
-
141
- - added optional props: `xAxisLabel`, `yAxisSuffix`, `yLabelsOffset`, `xLabelsOffset`, and `hidePointsAtIndex` to `LineChart`
142
- - added optional prop `withInnerLines` to `BarChart`
143
- - added optional `fillShadowGradient` color and `fillShadowGradientOpacity` to chart config for customizing the area under the data points in `LinChart` and `BarChart`
144
-
145
- ## v3.10.0
146
-
147
- - added type for chart config
148
- - added props config for Dots in the line chart
149
-
150
- ## v3.9.0
151
-
152
- - added propsForLabels to chartConfig
153
- - added labelColor to chartConfig as a shortcut for propsForLabels / fill
154
-
155
- ## v3.8.0
156
-
157
- - added dot cx, cy in the onDataPointClick functions arguments
158
- - fixed for horizontal label position when there is only one data point and fromZero prop is true
159
-
160
- ## v3.7.0
161
-
162
- - expose paddingTop and paddingRight via the style prop
163
- - style the chart background lines with chartConfig's propsForBackgroundLines
164
-
165
- ## v3.6.0
166
-
167
- - added barPercentage property to chartConfig (by @dchirutac)
168
- - added dot color callback prop (by @stephenc222)
169
- - added bar chart label rotations (by @stephenc222)
170
-
171
- ## v3.5.0
172
-
173
- - added `horizontalLabelRotation` and `verticalLabelRotation` props to `LineChart`
174
-
175
- ## v3.4.0
176
-
177
- - added `chartConfig` `backgroundGradientFromOpacity` and `backgroundGradientToOpacity`
178
-
179
- ## 3.3.0
180
-
181
- - added `index` to `onDataPointClick`
182
-
183
- ## 3.2.0
184
-
185
- - added optional labels for ProgressChart
186
-
187
- ## 3.1.0
188
-
189
- - added withVerticalLabels and withHorizontalLabels to LineChart, BarChart and StackedBarChart
190
-
191
- ## 3.0.0
192
-
193
- - added typescript types