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/README.md CHANGED
@@ -93,23 +93,27 @@ const chartConfig = {
93
93
  };
94
94
  ```
95
95
 
96
- | Property | Type | Description |
97
- | ----------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------ |
98
- | backgroundGradientFrom | string | Defines the first color in the linear gradient of a chart's background |
99
- | backgroundGradientFromOpacity | Number | Defines the first color opacity in the linear gradient of a chart's background |
100
- | backgroundGradientTo | string | Defines the second color in the linear gradient of a chart's background |
101
- | backgroundGradientToOpacity | Number | Defines the second color opacity in the linear gradient of a chart's background |
102
- | fillShadowGradient | string | Defines the color of the area under data |
103
- | fillShadowGradientOpacity | Number | Defines the initial opacity of the area under data |
104
- | useShadowColorFromDataset | Boolean | Defines the option to use color from dataset to each chart data. Default is false |
105
- | color | function => string | Defines the base color function that is used to calculate colors of labels and sectors used in a chart |
106
- | strokeWidth | Number | Defines the base stroke width in a chart |
107
- | barPercentage | Number | Defines the percent (0-1) of the available width each bar width in a chart |
108
- | barRadius | Number | Defines the radius of each bar |
109
- | propsForBackgroundLines | props | Override styles of the background lines, refer to react-native-svg's Line documentation |
110
- | propsForLabels | props | Override styles of the labels, refer to react-native-svg's Text documentation |
111
- | propsForVerticalLabels | props | Override styles of vertical labels, refer to react-native-svg's Text documentation |
112
- | propsForHorizontalLabels | props | Override styles of horizontal labels, refer to react-native-svg's Text documentation |
96
+ | Property | Type | Description |
97
+ | ----------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
98
+ | backgroundGradientFrom | string | Defines the first color in the linear gradient of a chart's background |
99
+ | backgroundGradientFromOpacity | Number | Defines the first color opacity in the linear gradient of a chart's background |
100
+ | backgroundGradientTo | string | Defines the second color in the linear gradient of a chart's background |
101
+ | backgroundGradientToOpacity | Number | Defines the second color opacity in the linear gradient of a chart's background |
102
+ | fillShadowGradientFrom | string | Defines the first color in the linear gradient of the area under data (can also be specified as `fillShadowGradient`) |
103
+ | fillShadowGradientFromOpacity | Number | Defines the first color opacity in the linear gradient of the area under data (can also be specified as `fillShadowGradientOpacity`) |
104
+ | fillShadowGradientFromOffset | Number | Defines the first color offset (0-1) in the linear gradient of the area under data |
105
+ | fillShadowGradientTo | string | Defines the second color in the linear gradient of the area under data |
106
+ | fillShadowGradientToOpacity | Number | Defines the second color opacity in the linear gradient of the area under data |
107
+ | fillShadowGradientToOffset | Number | Defines the second color offset (0-1) in the linear gradient of the area under data |
108
+ | useShadowColorFromDataset | Boolean | Defines the option to use color from dataset to each chart data. Default is false |
109
+ | color | function => string | Defines the base color function that is used to calculate colors of labels and sectors used in a chart |
110
+ | strokeWidth | Number | Defines the base stroke width in a chart |
111
+ | barPercentage | Number | Defines the percent (0-1) of the available width each bar width in a chart |
112
+ | barRadius | Number | Defines the radius of each bar |
113
+ | propsForBackgroundLines | props | Override styles of the background lines, refer to react-native-svg's Line documentation |
114
+ | propsForLabels | props | Override styles of the labels, refer to react-native-svg's Text documentation |
115
+ | propsForVerticalLabels | props | Override styles of vertical labels, refer to react-native-svg's Text documentation |
116
+ | propsForHorizontalLabels | props | Override styles of horizontal labels, refer to react-native-svg's Text documentation |
113
117
 
114
118
  ## Responsive charts
115
119
 
@@ -27,10 +27,14 @@ export interface AbstractChartConfig extends ChartConfig {
27
27
  verticalLabelRotation?: number;
28
28
  formatXLabel?: (xLabel: string) => string;
29
29
  verticalLabelsHeightPercentage?: number;
30
+ formatTopBarValue?: (topBarValue: number) => string | number;
30
31
  }
31
- export declare type AbstractChartState = {};
32
+ export type AbstractChartState = {};
32
33
  export declare const DEFAULT_X_LABELS_HEIGHT_PERCENTAGE = 0.75;
33
34
  declare class AbstractChart<IProps extends AbstractChartProps, IState extends AbstractChartState> extends Component<AbstractChartProps & IProps, AbstractChartState & IState> {
35
+ private chartId;
36
+ protected getGradientId: (id: string) => string;
37
+ protected getGradientUrl: (id: string) => string;
34
38
  calcScaler: (data: number[]) => number;
35
39
  calcBaseHeight: (data: number[], height: number) => number;
36
40
  calcHeight: (val: number, data: number[], height: number) => number;
@@ -45,46 +49,46 @@ declare class AbstractChart<IProps extends AbstractChartProps, IState extends Ab
45
49
  dx?: import("react-native-svg").NumberArray;
46
50
  dy?: import("react-native-svg").NumberArray;
47
51
  rotate?: import("react-native-svg").NumberArray;
48
- opacity?: string | number;
49
- inlineSize?: string | number;
52
+ opacity?: import("react-native-svg").NumberProp;
53
+ inlineSize?: import("react-native-svg").NumberProp;
50
54
  alignmentBaseline?: import("react-native-svg").AlignmentBaseline;
51
55
  baselineShift?: import("react-native-svg").BaselineShift;
52
- verticalAlign?: string | number;
56
+ verticalAlign?: import("react-native-svg").NumberProp;
53
57
  lengthAdjust?: import("react-native-svg").LengthAdjust;
54
- textLength?: string | number;
55
- fontData?: {
58
+ textLength?: import("react-native-svg").NumberProp;
59
+ fontData?: null | {
56
60
  [name: string]: unknown;
57
61
  };
58
62
  fontFeatureSettings?: string;
59
63
  fill: import("react-native-svg").Color;
60
- fillOpacity?: string | number;
64
+ fillOpacity?: import("react-native-svg").NumberProp;
61
65
  fillRule?: import("react-native-svg").FillRule;
62
66
  stroke?: import("react-native-svg").Color;
63
- strokeWidth?: string | number;
64
- strokeOpacity?: string | number;
65
- strokeDasharray?: string | number | readonly (string | number)[];
66
- strokeDashoffset?: string | number;
67
- strokeLinecap?: "round" | "butt" | "square";
68
- strokeLinejoin?: "round" | "bevel" | "miter";
69
- strokeMiterlimit?: string | number;
67
+ strokeWidth?: import("react-native-svg").NumberProp;
68
+ strokeOpacity?: import("react-native-svg").NumberProp;
69
+ strokeDasharray?: ReadonlyArray<import("react-native-svg").NumberProp> | import("react-native-svg").NumberProp;
70
+ strokeDashoffset?: import("react-native-svg").NumberProp;
71
+ strokeLinecap?: import("react-native-svg").Linecap;
72
+ strokeLinejoin?: import("react-native-svg").Linejoin;
73
+ strokeMiterlimit?: import("react-native-svg").NumberProp;
70
74
  clipRule?: import("react-native-svg").FillRule;
71
75
  clipPath?: string;
72
- transform?: string | import("react-native-svg").TransformObject | import("react-native-svg").ColumnMajorTransformMatrix;
76
+ transform?: import("react-native-svg").ColumnMajorTransformMatrix | string | import("react-native-svg").TransformObject;
73
77
  translate?: import("react-native-svg").NumberArray;
74
- translateX?: string | number;
75
- translateY?: string | number;
78
+ translateX?: import("react-native-svg").NumberProp;
79
+ translateY?: import("react-native-svg").NumberProp;
76
80
  origin?: import("react-native-svg").NumberArray;
77
- originX?: string | number;
78
- originY?: string | number;
81
+ originX?: import("react-native-svg").NumberProp;
82
+ originY?: import("react-native-svg").NumberProp;
79
83
  scale?: import("react-native-svg").NumberArray;
80
- scaleX?: string | number;
81
- scaleY?: string | number;
84
+ scaleX?: import("react-native-svg").NumberProp;
85
+ scaleY?: import("react-native-svg").NumberProp;
82
86
  skew?: import("react-native-svg").NumberArray;
83
- skewX?: string | number;
84
- skewY?: string | number;
85
- rotation?: string | number;
86
- vectorEffect?: "default" | "inherit" | "none" | "non-scaling-stroke" | "nonScalingStroke" | "uri";
87
- pointerEvents?: "auto" | "none" | "box-none" | "box-only";
87
+ skewX?: import("react-native-svg").NumberProp;
88
+ skewY?: import("react-native-svg").NumberProp;
89
+ rotation?: import("react-native-svg").NumberProp;
90
+ vectorEffect?: "none" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "inherit" | "uri";
91
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto";
88
92
  onStartShouldSetResponder?: (event: import("react-native").GestureResponderEvent) => boolean;
89
93
  onMoveShouldSetResponder?: (event: import("react-native").GestureResponderEvent) => boolean;
90
94
  onResponderEnd?: (event: import("react-native").GestureResponderEvent) => void;
@@ -114,15 +118,15 @@ declare class AbstractChart<IProps extends AbstractChartProps, IState extends Ab
114
118
  font?: import("react-native-svg").FontObject;
115
119
  fontStyle?: import("react-native-svg").FontStyle;
116
120
  fontVariant?: import("react-native-svg").FontVariant;
117
- fontWeight?: string | number;
121
+ fontWeight?: import("react-native-svg").FontWeight;
118
122
  fontStretch?: import("react-native-svg").FontStretch;
119
- fontSize: string | number;
123
+ fontSize: import("react-native-svg").NumberProp;
120
124
  fontFamily?: string;
121
125
  textAnchor?: import("react-native-svg").TextAnchor;
122
126
  textDecoration?: import("react-native-svg").TextDecoration;
123
- letterSpacing?: string | number;
124
- wordSpacing?: string | number;
125
- kerning?: string | number;
127
+ letterSpacing?: import("react-native-svg").NumberProp;
128
+ wordSpacing?: import("react-native-svg").NumberProp;
129
+ kerning?: import("react-native-svg").NumberProp;
126
130
  fontVariantLigatures?: import("react-native-svg").FontVariantLigatures;
127
131
  fontVariationSettings?: string;
128
132
  };
@@ -132,46 +136,46 @@ declare class AbstractChart<IProps extends AbstractChartProps, IState extends Ab
132
136
  dx?: import("react-native-svg").NumberArray;
133
137
  dy?: import("react-native-svg").NumberArray;
134
138
  rotate?: import("react-native-svg").NumberArray;
135
- opacity?: string | number;
136
- inlineSize?: string | number;
139
+ opacity?: import("react-native-svg").NumberProp;
140
+ inlineSize?: import("react-native-svg").NumberProp;
137
141
  alignmentBaseline?: import("react-native-svg").AlignmentBaseline;
138
142
  baselineShift?: import("react-native-svg").BaselineShift;
139
- verticalAlign?: string | number;
143
+ verticalAlign?: import("react-native-svg").NumberProp;
140
144
  lengthAdjust?: import("react-native-svg").LengthAdjust;
141
- textLength?: string | number;
142
- fontData?: {
145
+ textLength?: import("react-native-svg").NumberProp;
146
+ fontData?: null | {
143
147
  [name: string]: unknown;
144
148
  };
145
149
  fontFeatureSettings?: string;
146
150
  fill: import("react-native-svg").Color;
147
- fillOpacity?: string | number;
151
+ fillOpacity?: import("react-native-svg").NumberProp;
148
152
  fillRule?: import("react-native-svg").FillRule;
149
153
  stroke?: import("react-native-svg").Color;
150
- strokeWidth?: string | number;
151
- strokeOpacity?: string | number;
152
- strokeDasharray?: string | number | readonly (string | number)[];
153
- strokeDashoffset?: string | number;
154
- strokeLinecap?: "round" | "butt" | "square";
155
- strokeLinejoin?: "round" | "bevel" | "miter";
156
- strokeMiterlimit?: string | number;
154
+ strokeWidth?: import("react-native-svg").NumberProp;
155
+ strokeOpacity?: import("react-native-svg").NumberProp;
156
+ strokeDasharray?: ReadonlyArray<import("react-native-svg").NumberProp> | import("react-native-svg").NumberProp;
157
+ strokeDashoffset?: import("react-native-svg").NumberProp;
158
+ strokeLinecap?: import("react-native-svg").Linecap;
159
+ strokeLinejoin?: import("react-native-svg").Linejoin;
160
+ strokeMiterlimit?: import("react-native-svg").NumberProp;
157
161
  clipRule?: import("react-native-svg").FillRule;
158
162
  clipPath?: string;
159
- transform?: string | import("react-native-svg").TransformObject | import("react-native-svg").ColumnMajorTransformMatrix;
163
+ transform?: import("react-native-svg").ColumnMajorTransformMatrix | string | import("react-native-svg").TransformObject;
160
164
  translate?: import("react-native-svg").NumberArray;
161
- translateX?: string | number;
162
- translateY?: string | number;
165
+ translateX?: import("react-native-svg").NumberProp;
166
+ translateY?: import("react-native-svg").NumberProp;
163
167
  origin?: import("react-native-svg").NumberArray;
164
- originX?: string | number;
165
- originY?: string | number;
168
+ originX?: import("react-native-svg").NumberProp;
169
+ originY?: import("react-native-svg").NumberProp;
166
170
  scale?: import("react-native-svg").NumberArray;
167
- scaleX?: string | number;
168
- scaleY?: string | number;
171
+ scaleX?: import("react-native-svg").NumberProp;
172
+ scaleY?: import("react-native-svg").NumberProp;
169
173
  skew?: import("react-native-svg").NumberArray;
170
- skewX?: string | number;
171
- skewY?: string | number;
172
- rotation?: string | number;
173
- vectorEffect?: "default" | "inherit" | "none" | "non-scaling-stroke" | "nonScalingStroke" | "uri";
174
- pointerEvents?: "auto" | "none" | "box-none" | "box-only";
174
+ skewX?: import("react-native-svg").NumberProp;
175
+ skewY?: import("react-native-svg").NumberProp;
176
+ rotation?: import("react-native-svg").NumberProp;
177
+ vectorEffect?: "none" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "inherit" | "uri";
178
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto";
175
179
  onStartShouldSetResponder?: (event: import("react-native").GestureResponderEvent) => boolean;
176
180
  onMoveShouldSetResponder?: (event: import("react-native").GestureResponderEvent) => boolean;
177
181
  onResponderEnd?: (event: import("react-native").GestureResponderEvent) => void;
@@ -201,15 +205,15 @@ declare class AbstractChart<IProps extends AbstractChartProps, IState extends Ab
201
205
  font?: import("react-native-svg").FontObject;
202
206
  fontStyle?: import("react-native-svg").FontStyle;
203
207
  fontVariant?: import("react-native-svg").FontVariant;
204
- fontWeight?: string | number;
208
+ fontWeight?: import("react-native-svg").FontWeight;
205
209
  fontStretch?: import("react-native-svg").FontStretch;
206
- fontSize?: string | number;
210
+ fontSize?: import("react-native-svg").NumberProp;
207
211
  fontFamily?: string;
208
212
  textAnchor?: import("react-native-svg").TextAnchor;
209
213
  textDecoration?: import("react-native-svg").TextDecoration;
210
- letterSpacing?: string | number;
211
- wordSpacing?: string | number;
212
- kerning?: string | number;
214
+ letterSpacing?: import("react-native-svg").NumberProp;
215
+ wordSpacing?: import("react-native-svg").NumberProp;
216
+ kerning?: import("react-native-svg").NumberProp;
213
217
  fontVariantLigatures?: import("react-native-svg").FontVariantLigatures;
214
218
  fontVariationSettings?: string;
215
219
  };
@@ -219,46 +223,46 @@ declare class AbstractChart<IProps extends AbstractChartProps, IState extends Ab
219
223
  dx?: import("react-native-svg").NumberArray;
220
224
  dy?: import("react-native-svg").NumberArray;
221
225
  rotate?: import("react-native-svg").NumberArray;
222
- opacity?: string | number;
223
- inlineSize?: string | number;
226
+ opacity?: import("react-native-svg").NumberProp;
227
+ inlineSize?: import("react-native-svg").NumberProp;
224
228
  alignmentBaseline?: import("react-native-svg").AlignmentBaseline;
225
229
  baselineShift?: import("react-native-svg").BaselineShift;
226
- verticalAlign?: string | number;
230
+ verticalAlign?: import("react-native-svg").NumberProp;
227
231
  lengthAdjust?: import("react-native-svg").LengthAdjust;
228
- textLength?: string | number;
229
- fontData?: {
232
+ textLength?: import("react-native-svg").NumberProp;
233
+ fontData?: null | {
230
234
  [name: string]: unknown;
231
235
  };
232
236
  fontFeatureSettings?: string;
233
237
  fill: import("react-native-svg").Color;
234
- fillOpacity?: string | number;
238
+ fillOpacity?: import("react-native-svg").NumberProp;
235
239
  fillRule?: import("react-native-svg").FillRule;
236
240
  stroke?: import("react-native-svg").Color;
237
- strokeWidth?: string | number;
238
- strokeOpacity?: string | number;
239
- strokeDasharray?: string | number | readonly (string | number)[];
240
- strokeDashoffset?: string | number;
241
- strokeLinecap?: "round" | "butt" | "square";
242
- strokeLinejoin?: "round" | "bevel" | "miter";
243
- strokeMiterlimit?: string | number;
241
+ strokeWidth?: import("react-native-svg").NumberProp;
242
+ strokeOpacity?: import("react-native-svg").NumberProp;
243
+ strokeDasharray?: ReadonlyArray<import("react-native-svg").NumberProp> | import("react-native-svg").NumberProp;
244
+ strokeDashoffset?: import("react-native-svg").NumberProp;
245
+ strokeLinecap?: import("react-native-svg").Linecap;
246
+ strokeLinejoin?: import("react-native-svg").Linejoin;
247
+ strokeMiterlimit?: import("react-native-svg").NumberProp;
244
248
  clipRule?: import("react-native-svg").FillRule;
245
249
  clipPath?: string;
246
- transform?: string | import("react-native-svg").TransformObject | import("react-native-svg").ColumnMajorTransformMatrix;
250
+ transform?: import("react-native-svg").ColumnMajorTransformMatrix | string | import("react-native-svg").TransformObject;
247
251
  translate?: import("react-native-svg").NumberArray;
248
- translateX?: string | number;
249
- translateY?: string | number;
252
+ translateX?: import("react-native-svg").NumberProp;
253
+ translateY?: import("react-native-svg").NumberProp;
250
254
  origin?: import("react-native-svg").NumberArray;
251
- originX?: string | number;
252
- originY?: string | number;
255
+ originX?: import("react-native-svg").NumberProp;
256
+ originY?: import("react-native-svg").NumberProp;
253
257
  scale?: import("react-native-svg").NumberArray;
254
- scaleX?: string | number;
255
- scaleY?: string | number;
258
+ scaleX?: import("react-native-svg").NumberProp;
259
+ scaleY?: import("react-native-svg").NumberProp;
256
260
  skew?: import("react-native-svg").NumberArray;
257
- skewX?: string | number;
258
- skewY?: string | number;
259
- rotation?: string | number;
260
- vectorEffect?: "default" | "inherit" | "none" | "non-scaling-stroke" | "nonScalingStroke" | "uri";
261
- pointerEvents?: "auto" | "none" | "box-none" | "box-only";
261
+ skewX?: import("react-native-svg").NumberProp;
262
+ skewY?: import("react-native-svg").NumberProp;
263
+ rotation?: import("react-native-svg").NumberProp;
264
+ vectorEffect?: "none" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "inherit" | "uri";
265
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto";
262
266
  onStartShouldSetResponder?: (event: import("react-native").GestureResponderEvent) => boolean;
263
267
  onMoveShouldSetResponder?: (event: import("react-native").GestureResponderEvent) => boolean;
264
268
  onResponderEnd?: (event: import("react-native").GestureResponderEvent) => void;
@@ -288,29 +292,29 @@ declare class AbstractChart<IProps extends AbstractChartProps, IState extends Ab
288
292
  font?: import("react-native-svg").FontObject;
289
293
  fontStyle?: import("react-native-svg").FontStyle;
290
294
  fontVariant?: import("react-native-svg").FontVariant;
291
- fontWeight?: string | number;
295
+ fontWeight?: import("react-native-svg").FontWeight;
292
296
  fontStretch?: import("react-native-svg").FontStretch;
293
- fontSize?: string | number;
297
+ fontSize?: import("react-native-svg").NumberProp;
294
298
  fontFamily?: string;
295
299
  textAnchor?: import("react-native-svg").TextAnchor;
296
300
  textDecoration?: import("react-native-svg").TextDecoration;
297
- letterSpacing?: string | number;
298
- wordSpacing?: string | number;
299
- kerning?: string | number;
301
+ letterSpacing?: import("react-native-svg").NumberProp;
302
+ wordSpacing?: import("react-native-svg").NumberProp;
303
+ kerning?: import("react-native-svg").NumberProp;
300
304
  fontVariantLigatures?: import("react-native-svg").FontVariantLigatures;
301
305
  fontVariationSettings?: string;
302
306
  };
303
307
  renderHorizontalLines: (config: any) => JSX.Element[];
304
308
  renderHorizontalLine: (config: any) => JSX.Element;
305
- renderHorizontalLabels: (config: Pick<AbstractChartConfig, "color" | "style" | "height" | "width" | "propsForBackgroundLines" | "propsForLabels" | "labelColor" | "propsForVerticalLabels" | "propsForHorizontalLabels" | "count" | "paddingTop" | "paddingRight" | "horizontalLabelRotation" | "formatYLabel" | "labels" | "horizontalOffset" | "stackedBar" | "verticalLabelRotation" | "formatXLabel" | "verticalLabelsHeightPercentage" | "backgroundColor" | "backgroundGradientFrom" | "backgroundGradientFromOpacity" | "backgroundGradientTo" | "backgroundGradientToOpacity" | "fillShadowGradient" | "fillShadowGradientOpacity" | "useShadowColorFromDataset" | "strokeWidth" | "barPercentage" | "barRadius" | "propsForDots" | "decimalPlaces" | "linejoinType" | "scrollableDotFill" | "scrollableDotStrokeColor" | "scrollableDotStrokeWidth" | "scrollableDotRadius" | "scrollableInfoViewStyle" | "scrollableInfoTextStyle" | "scrollableInfoTextDecorator" | "scrollableInfoOffset" | "scrollableInfoSize"> & {
309
+ renderHorizontalLabels: (config: Omit<AbstractChartConfig, "data"> & {
306
310
  data: number[];
307
311
  }) => JSX.Element[];
308
312
  renderVerticalLabels: ({ labels, width, height, paddingRight, paddingTop, horizontalOffset, stackedBar, verticalLabelRotation, formatXLabel, verticalLabelsHeightPercentage }: Pick<AbstractChartConfig, "labels" | "width" | "height" | "paddingRight" | "paddingTop" | "horizontalOffset" | "stackedBar" | "verticalLabelRotation" | "formatXLabel" | "verticalLabelsHeightPercentage">) => JSX.Element[];
309
- renderVerticalLines: ({ data, width, height, paddingTop, paddingRight, verticalLabelsHeightPercentage }: Pick<Pick<AbstractChartConfig, "data" | "height" | "width" | "paddingTop" | "paddingRight" | "verticalLabelsHeightPercentage">, "height" | "width" | "paddingTop" | "paddingRight" | "verticalLabelsHeightPercentage"> & {
313
+ renderVerticalLines: ({ data, width, height, paddingTop, paddingRight, verticalLabelsHeightPercentage }: Omit<Pick<AbstractChartConfig, "data" | "width" | "height" | "paddingRight" | "paddingTop" | "verticalLabelsHeightPercentage">, "data"> & {
310
314
  data: number[];
311
315
  }) => JSX.Element[];
312
316
  renderVerticalLine: ({ height, paddingTop, paddingRight, verticalLabelsHeightPercentage }: Pick<AbstractChartConfig, "height" | "paddingRight" | "paddingTop" | "verticalLabelsHeightPercentage">) => JSX.Element;
313
- renderDefs: (config: Pick<PartialBy<AbstractChartConfig, "backgroundGradientFromOpacity" | "backgroundGradientToOpacity" | "fillShadowGradient" | "fillShadowGradientOpacity">, "width" | "height" | "backgroundGradientFrom" | "backgroundGradientTo" | "useShadowColorFromDataset" | "data" | "backgroundGradientFromOpacity" | "backgroundGradientToOpacity" | "fillShadowGradient" | "fillShadowGradientOpacity">) => JSX.Element;
317
+ renderDefs: (config: Pick<PartialBy<AbstractChartConfig, "backgroundGradientFromOpacity" | "backgroundGradientToOpacity" | "fillShadowGradient" | "fillShadowGradientOpacity" | "fillShadowGradientFrom" | "fillShadowGradientFromOpacity" | "fillShadowGradientFromOffset" | "fillShadowGradientTo" | "fillShadowGradientToOpacity" | "fillShadowGradientToOffset">, "width" | "height" | "backgroundGradientFrom" | "backgroundGradientTo" | "useShadowColorFromDataset" | "data" | "backgroundGradientFromOpacity" | "backgroundGradientToOpacity" | "fillShadowGradient" | "fillShadowGradientOpacity" | "fillShadowGradientFrom" | "fillShadowGradientFromOpacity" | "fillShadowGradientFromOffset" | "fillShadowGradientTo" | "fillShadowGradientToOpacity" | "fillShadowGradientToOffset">) => JSX.Element;
314
318
  }
315
319
  export default AbstractChart;
316
320
  //# sourceMappingURL=AbstractChart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractChart.d.ts","sourceRoot":"","sources":["../src/AbstractChart.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEhE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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