gifted-charts-core 0.0.20 → 0.0.22

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.
@@ -1,585 +1,593 @@
1
- import { ColorValue } from "react-native";
2
- import { yAxisSides } from "../utils/constants";
1
+ import { type ColorValue } from 'react-native'
2
+ import { type yAxisSides } from '../utils/constants'
3
3
  import {
4
- CurveType,
5
- DataSet,
6
- EdgePosition,
7
- HighlightedRange,
8
- LineSegment,
9
- Pointer,
10
- RuleType,
11
- RulesConfig,
12
- arrowConfigType,
13
- referenceConfigType,
14
- secondaryLineConfigType,
15
- secondaryYAxisType,
16
- } from "../utils/types";
17
-
18
- export type LineChartPropsType = {
19
- height?: number;
20
- overflowTop?: number;
21
- overflowBottom?: number;
22
- noOfSections?: number;
23
- maxValue?: number;
24
- mostNegativeValue?: number;
25
- stepHeight?: number;
26
- stepValue?: number;
27
- spacing?: number;
28
- initialSpacing?: number;
29
- endSpacing?: number;
30
- data?: Array<lineDataItem>;
31
- data2?: Array<lineDataItem>;
32
- data3?: Array<lineDataItem>;
33
- data4?: Array<lineDataItem>;
34
- data5?: Array<lineDataItem>;
35
- dataSet?: Array<DataSet>;
36
- zIndex1?: number;
37
- zIndex2?: number;
38
- zIndex3?: number;
39
- zIndex4?: number;
40
- zIndex5?: number;
41
- thickness?: number;
42
- thickness1?: number;
43
- thickness2?: number;
44
- thickness3?: number;
45
- thickness4?: number;
46
- thickness5?: number;
47
- strokeDashArray?: Array<number>;
48
- strokeDashArray1?: Array<number>;
49
- strokeDashArray2?: Array<number>;
50
- strokeDashArray3?: Array<number>;
51
- strokeDashArray4?: Array<number>;
52
- strokeDashArray5?: Array<number>;
53
- rotateLabel?: boolean;
54
- isAnimated?: boolean;
55
- animateOnDataChange?: boolean;
56
- animationDuration?: number;
57
- onDataChangeAnimationDuration?: number;
58
- animationEasing?: any;
59
- animateTogether?: boolean;
60
- xAxisLength?: number;
61
- xAxisThickness?: number;
62
- xAxisColor?: ColorValue;
63
- xAxisType?: RuleType;
64
- hideRules?: boolean;
65
- rulesLength?: number;
66
- rulesColor?: ColorValue;
67
- rulesThickness?: number;
68
- focusEnabled?: boolean;
69
- onFocus?: Function;
70
- showDataPointOnFocus?: boolean;
71
- showStripOnFocus?: boolean;
72
- showTextOnFocus?: boolean;
73
- stripHeight?: number;
74
- stripWidth?: number;
75
- stripColor?: ColorValue | String | any;
76
- stripOpacity?: number;
77
- onPress?: Function;
78
- unFocusOnPressOut?: boolean;
79
- delayBeforeUnFocus?: number;
80
- showValuesAsDataPointsText?: boolean;
81
-
82
- rulesType?: RuleType;
83
- dashWidth?: number;
84
- dashGap?: number;
85
- rulesConfigArray?: Array<RulesConfig>;
86
- showReferenceLine1?: boolean;
87
- referenceLine1Config?: referenceConfigType;
88
- referenceLine1Position?: number;
89
- showReferenceLine2?: boolean;
90
- referenceLine2Config?: referenceConfigType;
91
- referenceLine2Position?: number;
92
- showReferenceLine3?: boolean;
93
- referenceLine3Config?: referenceConfigType;
94
- referenceLine3Position?: number;
95
-
96
- showVerticalLines?: boolean;
97
- verticalLinesUptoDataPoint?: boolean;
98
- verticalLinesThickness?: number;
99
- verticalLinesHeight?: number;
100
- verticalLinesColor?: ColorValue;
101
- verticalLinesStrokeDashArray?: Array<number>;
102
- verticalLinesShift?: number;
103
- verticalLinesZIndex?: number;
104
- noOfVerticalLines?: number;
105
- verticalLinesSpacing?: number;
106
- hideAxesAndRules?: boolean;
107
- areaChart?: boolean;
108
- areaChart1?: boolean;
109
- areaChart2?: boolean;
110
- areaChart3?: boolean;
111
- areaChart4?: boolean;
112
- areaChart5?: boolean;
113
- stepChart?: boolean;
114
- stepChart1?: boolean;
115
- stepChart2?: boolean;
116
- stepChart3?: boolean;
117
- stepChart4?: boolean;
118
- stepChart5?: boolean;
119
- edgePosition?: EdgePosition;
120
-
121
- disableScroll?: boolean;
122
- pointerConfig?: Pointer;
123
- showScrollIndicator?: boolean;
124
- indicatorColor?: "black" | "default" | "white";
125
-
126
- //Indices
127
-
128
- showYAxisIndices?: boolean;
129
- showXAxisIndices?: boolean;
130
- yAxisIndicesHeight?: number;
131
- xAxisIndicesHeight?: number;
132
- yAxisIndicesWidth?: number;
133
- xAxisIndicesWidth?: number;
134
- xAxisIndicesColor?: ColorValue;
135
- yAxisIndicesColor?: ColorValue;
136
- yAxisSide?: yAxisSides;
137
- yAxisOffset?: number;
138
-
139
- startIndex?: number;
140
- startIndex1?: number;
141
- startIndex2?: number;
142
- startIndex3?: number;
143
- startIndex4?: number;
144
- startIndex5?: number;
145
- endIndex?: number;
146
- endIndex1?: number;
147
- endIndex2?: number;
148
- endIndex3?: number;
149
- endIndex4?: number;
150
- endIndex5?: number;
151
-
152
- color?: string;
153
- color1?: string;
154
- color2?: string;
155
- color3?: string;
156
- color4?: string;
157
- color5?: string;
158
- yAxisThickness?: number;
159
- yAxisColor?: ColorValue;
160
- yAxisExtraHeight?: number;
161
- trimYAxisAtTop?: boolean;
162
- yAxisLabelContainerStyle?: any;
163
- horizontalRulesStyle?: any;
164
- yAxisTextStyle?: any;
165
- yAxisTextNumberOfLines?: number;
166
- xAxisTextNumberOfLines?: number;
167
- showFractionalValues?: boolean;
168
- roundToDigits?: number;
169
- yAxisLabelWidth?: number;
170
- hideYAxisText?: boolean;
171
-
172
- backgroundColor?: ColorValue;
173
- curved?: boolean;
174
- curvature?: number;
175
- curveType?: CurveType;
176
- horizSections?: Array<sectionType>;
177
-
178
- //Data points
179
-
180
- hideDataPoints?: boolean;
181
- dataPointsHeight?: number;
182
- dataPointsWidth?: number;
183
- dataPointsRadius?: number;
184
- dataPointsColor?: string;
185
- dataPointsShape?: string;
186
- hideDataPoints1?: boolean;
187
- dataPointsHeight1?: number;
188
- dataPointsWidth1?: number;
189
- dataPointsRadius1?: number;
190
- dataPointsColor1?: string;
191
- dataPointsShape1?: string;
192
- hideDataPoints2?: boolean;
193
- dataPointsHeight2?: number;
194
- dataPointsWidth2?: number;
195
- dataPointsRadius2?: number;
196
- dataPointsColor2?: string;
197
- dataPointsShape2?: string;
198
- hideDataPoints3?: boolean;
199
- dataPointsHeight3?: number;
200
- dataPointsWidth3?: number;
201
- dataPointsRadius3?: number;
202
- dataPointsColor3?: string;
203
- dataPointsShape3?: string;
204
- hideDataPoints4?: boolean;
205
- dataPointsHeight4?: number;
206
- dataPointsWidth4?: number;
207
- dataPointsRadius4?: number;
208
- dataPointsColor4?: string;
209
- dataPointsShape4?: string;
210
- hideDataPoints5?: boolean;
211
- dataPointsHeight5?: number;
212
- dataPointsWidth5?: number;
213
- dataPointsRadius5?: number;
214
- dataPointsColor5?: string;
215
- dataPointsShape5?: string;
216
- customDataPoint?: Function;
217
-
218
- focusedDataPointShape?: String;
219
- focusedDataPointWidth?: number;
220
- focusedDataPointHeight?: number;
221
- focusedDataPointColor?: ColorValue | String | any;
222
- focusedDataPointRadius?: number;
223
- focusedCustomDataPoint?: Function;
224
- dataPointLabelWidth?: number;
225
- dataPointLabelShiftX?: number;
226
- dataPointLabelShiftY?: number;
227
-
228
- startFillColor?: string;
229
- endFillColor?: string;
230
- startOpacity?: number;
231
- endOpacity?: number;
232
- startFillColor1?: string;
233
- endFillColor1?: string;
234
- startOpacity1?: number;
235
- endOpacity1?: number;
236
- startFillColor2?: string;
237
- endFillColor2?: string;
238
- startOpacity2?: number;
239
- endOpacity2?: number;
240
- startFillColor3?: string;
241
- endFillColor3?: string;
242
- startOpacity3?: number;
243
- endOpacity3?: number;
244
- startFillColor4?: string;
245
- endFillColor4?: string;
246
- startOpacity4?: number;
247
- endOpacity4?: number;
248
- startFillColor5?: string;
249
- endFillColor5?: string;
250
- startOpacity5?: number;
251
- endOpacity5?: number;
252
- gradientDirection?: string;
253
-
254
- areaGradientComponent?: () => any;
255
- areaGradientId?: string;
256
-
257
- textFontSize?: number;
258
- textColor?: string;
259
- textFontSize1?: number;
260
- textColor1?: string;
261
- textFontSize2?: number;
262
- textColor2?: string;
263
- textFontSize3?: number;
264
- textColor3?: string;
265
- textFontSize4?: number;
266
- textColor4?: string;
267
- textFontSize5?: number;
268
- textColor5?: string;
269
- hideOrigin?: boolean;
270
- textShiftX?: number;
271
- textShiftY?: number;
272
- yAxisLabelTexts?: Array<string>;
273
- xAxisLabelTexts?: Array<string>;
274
- xAxisLabelTextStyle?: any;
275
- xAxisLabelsHeight?: number;
276
- xAxisLabelsVerticalShift?: number;
277
- width?: number;
278
- yAxisLabelPrefix?: String;
279
- yAxisLabelSuffix?: String;
280
- scrollRef?: any;
281
- scrollToEnd?: boolean;
282
- scrollToIndex?: number;
283
- scrollAnimation?: boolean;
284
- scrollEventThrottle?: number;
285
- noOfSectionsBelowXAxis?: number;
286
- labelsExtraHeight?: number;
287
- adjustToWidth?: boolean;
288
- getPointerProps?: Function;
289
- showArrows?: boolean;
290
- arrowConfig?: arrowConfigType;
291
- showArrow1?: boolean;
292
- arrowConfig1?: arrowConfigType;
293
- showArrow2?: boolean;
294
- arrowConfig2?: arrowConfigType;
295
- showArrow3?: boolean;
296
- arrowConfig3?: arrowConfigType;
297
- showArrow4?: boolean;
298
- arrowConfig4?: arrowConfigType;
299
- showArrow5?: boolean;
300
- arrowConfig5?: arrowConfigType;
301
-
302
- secondaryData?: Array<lineDataItem>;
303
- secondaryYAxis?: secondaryYAxisType;
304
- secondaryLineConfig?: secondaryLineConfigType;
305
- formatYLabel?: (label: string) => string;
306
- lineGradient?: boolean;
307
- lineGradientComponent?: () => any;
308
- lineGradientId?: string;
309
- lineGradientDirection?: string;
310
- lineGradientStartColor?: string;
311
- lineGradientEndColor?: string;
312
- lineSegments?: Array<LineSegment>;
313
- lineSegments2?: Array<LineSegment>;
314
- lineSegments3?: Array<LineSegment>;
315
- lineSegments4?: Array<LineSegment>;
316
- lineSegments5?: Array<LineSegment>;
317
- highlightedRange?: HighlightedRange;
318
-
319
- onEndReached?: () => void;
320
- onStartReached?: () => void;
321
- endReachedOffset?: number;
322
- onScroll?: Function;
323
-
324
- showDataPointsForMissingValues?: boolean;
325
- interpolateMissingValues?: boolean;
326
- onlyPositive?: boolean;
327
- };
328
-
329
- export type lineDataItem = {
330
- value: number;
331
- label?: String;
332
- labelComponent?: Function;
333
- labelTextStyle?: any;
334
- dataPointText?: string;
335
- textShiftX?: number;
336
- textShiftY?: number;
337
- textColor?: string;
338
- textFontSize?: number;
339
-
340
- hideDataPoint?: boolean;
341
- dataPointHeight?: number;
342
- dataPointWidth?: number;
343
- dataPointRadius?: number;
344
- dataPointColor?: string;
345
- dataPointShape?: string;
346
- customDataPoint?: Function;
347
-
348
- stripHeight?: number;
349
- stripWidth?: number;
350
- stripColor?: ColorValue | String | any;
351
- stripOpacity?: number;
352
-
353
- focusedDataPointShape?: String;
354
- focusedDataPointWidth?: number;
355
- focusedDataPointHeight?: number;
356
- focusedDataPointColor?: ColorValue | String | any;
357
- focusedDataPointRadius?: number;
358
- focusedCustomDataPoint?: Function;
359
-
360
- dataPointLabelComponent?: Function;
361
- focusedDataPointLabelComponent?: Function;
362
- dataPointLabelWidth?: number;
363
- dataPointLabelShiftX?: number;
364
- dataPointLabelShiftY?: number;
365
- showStrip?: boolean;
366
-
367
- showVerticalLine?: boolean;
368
- verticalLineUptoDataPoint?: boolean;
369
- verticalLineColor?: string;
370
- verticalLineThickness?: number;
371
- verticalLineStrokeDashArray?: Array<number>;
372
- pointerShiftX?: number;
373
- pointerShiftY?: number;
374
- onPress?: Function;
375
- showXAxisIndex?: boolean;
376
- };
377
-
378
- type sectionType = {
379
- value: string;
380
- };
381
-
382
- export type bicolorLineDataItem = {
383
- value: number;
384
- label?: String;
385
- labelComponent?: Function;
386
- labelTextStyle?: any;
387
- dataPointText?: string;
388
- textShiftX?: number;
389
- textShiftY?: number;
390
- textColor?: string;
391
- textFontSize?: number;
392
-
393
- hideDataPoint?: boolean;
394
- dataPointHeight?: number;
395
- dataPointWidth?: number;
396
- dataPointRadius?: number;
397
- dataPointColor?: string;
398
- dataPointShape?: string;
399
- customDataPoint?: Function;
400
-
401
- stripHeight?: number;
402
- stripWidth?: number;
403
- stripColor?: ColorValue | String | any;
404
- stripOpacity?: number;
405
-
406
- focusedDataPointShape?: String;
407
- focusedDataPointWidth?: number;
408
- focusedDataPointHeight?: number;
409
- focusedDataPointColor?: ColorValue | String | any;
410
- focusedDataPointRadius?: number;
411
- focusedCustomDataPoint?: Function;
412
-
413
- dataPointLabelComponent?: Function;
414
- focusedDataPointLabelComponent?: Function;
415
- dataPointLabelWidth?: number;
416
- dataPointLabelShiftX?: number;
417
- dataPointLabelShiftY?: number;
418
- showStrip?: boolean;
419
-
420
- showVerticalLine?: boolean;
421
- verticalLineUptoDataPoint?: boolean;
422
- verticalLineColor?: string;
423
- verticalLineThickness?: number;
424
- pointerShiftX?: number;
425
- pointerShiftY?: number;
426
- onPress?: Function;
427
- };
428
-
429
- export type LineChartBicolorPropsType = {
430
- height?: number;
431
- overflowTop?: number;
432
- noOfSections?: number;
433
- maxValue?: number;
434
- mostNegativeValue?: number;
435
- stepHeight?: number;
436
- stepValue?: number;
437
- spacing?: number;
438
- initialSpacing?: number;
439
- endSpacing?: number;
440
- data?: Array<bicolorLineDataItem>;
441
- zIndex?: number;
442
- thickness?: number;
443
- strokeDashArray?: Array<number>;
444
- rotateLabel?: boolean;
445
- isAnimated?: boolean;
446
- animationDuration?: number;
447
- onDataChangeAnimationDuration?: number;
448
- animationEasing?: any;
449
- xAxisLength?: number;
450
- xAxisThickness?: number;
451
- xAxisColor?: ColorValue;
452
- xAxisType?: RuleType;
453
- hideRules?: boolean;
454
- rulesLength?: number;
455
- rulesColor?: ColorValue;
456
- rulesThickness?: number;
457
- focusEnabled?: boolean;
458
- onFocus?: Function;
459
- showDataPointOnFocus?: boolean;
460
- showStripOnFocus?: boolean;
461
- showTextOnFocus?: boolean;
462
- stripHeight?: number;
463
- stripWidth?: number;
464
- stripColor?: ColorValue | String | any;
465
- stripOpacity?: number;
466
- onPress?: Function;
467
- unFocusOnPressOut?: boolean;
468
- delayBeforeUnFocus?: number;
469
-
470
- rulesType?: RuleType;
471
- dashWidth?: number;
472
- dashGap?: number;
473
- showReferenceLine1?: boolean;
474
- referenceLine1Config?: referenceConfigType;
475
- referenceLine1Position?: number;
476
- showReferenceLine2?: boolean;
477
- referenceLine2Config?: referenceConfigType;
478
- referenceLine2Position?: number;
479
- showReferenceLine3?: boolean;
480
- referenceLine3Config?: referenceConfigType;
481
- referenceLine3Position?: number;
482
-
483
- showVerticalLines?: boolean;
484
- verticalLinesUptoDataPoint?: boolean;
485
- verticalLinesThickness?: number;
486
- verticalLinesHeight?: number;
487
- verticalLinesColor?: ColorValue;
488
- verticalLinesStrokeDashArray?: Array<number>;
489
- verticalLinesShift?: number;
490
- verticalLinesZIndex?: number;
491
- noOfVerticalLines?: number;
492
- verticalLinesSpacing?: number;
493
- hideAxesAndRules?: boolean;
494
- areaChart?: boolean;
495
-
496
- disableScroll?: boolean;
497
- showScrollIndicator?: boolean;
498
- indicatorColor?: "black" | "default" | "white";
499
-
500
- //Indices
501
-
502
- showYAxisIndices?: boolean;
503
- showXAxisIndices?: boolean;
504
- yAxisIndicesHeight?: number;
505
- xAxisIndicesHeight?: number;
506
- yAxisIndicesWidth?: number;
507
- xAxisIndicesWidth?: number;
508
- xAxisIndicesColor?: ColorValue;
509
- yAxisIndicesColor?: ColorValue;
510
- yAxisSide?: yAxisSides;
511
- yAxisOffset?: number;
512
-
513
- startIndex?: number;
514
- endIndex?: number;
515
-
516
- color?: string;
517
- colorNegative?: string;
518
- yAxisThickness?: number;
519
- yAxisColor?: ColorValue;
520
- yAxisLabelContainerStyle?: any;
521
- horizontalRulesStyle?: any;
522
- yAxisTextStyle?: any;
523
- yAxisTextNumberOfLines?: number;
524
- xAxisTextNumberOfLines?: number;
525
- showFractionalValues?: boolean;
526
- roundToDigits?: number;
527
- yAxisLabelWidth?: number;
528
- hideYAxisText?: boolean;
529
-
530
- backgroundColor?: ColorValue;
531
- curved?: boolean;
532
- horizSections?: Array<sectionType>;
533
-
534
- //Data points
535
-
536
- hideDataPoints?: boolean;
537
- dataPointsHeight?: number;
538
- dataPointsWidth?: number;
539
- dataPointsRadius?: number;
540
- dataPointsColor?: string;
541
- dataPointsShape?: string;
542
- customDataPoint?: Function;
543
-
544
- focusedDataPointShape?: String;
545
- focusedDataPointWidth?: number;
546
- focusedDataPointHeight?: number;
547
- focusedDataPointColor?: ColorValue | String | any;
548
- focusedDataPointRadius?: number;
549
- focusedCustomDataPoint?: Function;
550
- dataPointLabelWidth?: number;
551
- dataPointLabelShiftX?: number;
552
- dataPointLabelShiftY?: number;
553
-
554
- startFillColor?: string;
555
- endFillColor?: string;
556
- startFillColorNegative?: string;
557
- endFillColorNegative?: string;
558
- startOpacity?: number;
559
- endOpacity?: number;
560
- startOpacityNegative?: number;
561
- endOpacityNegative?: number;
562
- gradientDirection?: string;
563
-
564
- textFontSize?: number;
565
- textColor?: string;
566
- hideOrigin?: boolean;
567
- textShiftX?: number;
568
- textShiftY?: number;
569
- yAxisLabelTexts?: Array<string>;
570
- xAxisLabelTexts?: Array<string>;
571
- xAxisLabelTextStyle?: any;
572
- width?: number;
573
- yAxisLabelPrefix?: String;
574
- yAxisLabelSuffix?: String;
575
- scrollToEnd?: boolean;
576
- scrollToIndex?: number;
577
- scrollAnimation?: boolean;
578
- scrollEventThrottle?: number;
579
- noOfSectionsBelowXAxis?: number;
580
- labelsExtraHeight?: number;
581
- adjustToWidth?: boolean;
582
- getPointerProps?: Function;
583
- formatYLabel?: (label: string) => string;
584
- onScroll?: Function;
585
- };
4
+ type CurveType,
5
+ type DataSet,
6
+ type EdgePosition,
7
+ type HighlightedRange,
8
+ type LineSegment,
9
+ type Pointer,
10
+ type RuleType,
11
+ type RulesConfig,
12
+ type arrowConfigType,
13
+ type referenceConfigType,
14
+ type secondaryLineConfigType,
15
+ type secondaryYAxisType
16
+ } from '../utils/types'
17
+
18
+ export interface LineChartPropsType {
19
+ height?: number
20
+ overflowTop?: number
21
+ overflowBottom?: number
22
+ noOfSections?: number
23
+ maxValue?: number
24
+ mostNegativeValue?: number
25
+ stepHeight?: number
26
+ stepValue?: number
27
+ spacing?: number
28
+ initialSpacing?: number
29
+ endSpacing?: number
30
+ data?: lineDataItem[]
31
+ data2?: lineDataItem[]
32
+ data3?: lineDataItem[]
33
+ data4?: lineDataItem[]
34
+ data5?: lineDataItem[]
35
+ dataSet?: DataSet[]
36
+ zIndex1?: number
37
+ zIndex2?: number
38
+ zIndex3?: number
39
+ zIndex4?: number
40
+ zIndex5?: number
41
+ thickness?: number
42
+ thickness1?: number
43
+ thickness2?: number
44
+ thickness3?: number
45
+ thickness4?: number
46
+ thickness5?: number
47
+ strokeDashArray?: number[]
48
+ strokeDashArray1?: number[]
49
+ strokeDashArray2?: number[]
50
+ strokeDashArray3?: number[]
51
+ strokeDashArray4?: number[]
52
+ strokeDashArray5?: number[]
53
+ rotateLabel?: boolean
54
+ isAnimated?: boolean
55
+ animateOnDataChange?: boolean
56
+ animationDuration?: number
57
+ onDataChangeAnimationDuration?: number
58
+ animationEasing?: any
59
+ animateTogether?: boolean
60
+ xAxisLength?: number
61
+ xAxisThickness?: number
62
+ xAxisColor?: ColorValue
63
+ xAxisType?: RuleType
64
+ hideRules?: boolean
65
+ rulesLength?: number
66
+ rulesColor?: ColorValue
67
+ rulesThickness?: number
68
+ focusEnabled?: boolean
69
+ onFocus?: Function
70
+ showDataPointOnFocus?: boolean
71
+ showStripOnFocus?: boolean
72
+ showTextOnFocus?: boolean
73
+ stripHeight?: number
74
+ stripWidth?: number
75
+ stripColor?: ColorValue | string | any
76
+ stripOpacity?: number
77
+ onPress?: Function
78
+ unFocusOnPressOut?: boolean
79
+ delayBeforeUnFocus?: number
80
+ showValuesAsDataPointsText?: boolean
81
+
82
+ rulesType?: RuleType
83
+ dashWidth?: number
84
+ dashGap?: number
85
+ rulesConfigArray?: RulesConfig[]
86
+ showReferenceLine1?: boolean
87
+ referenceLine1Config?: referenceConfigType
88
+ referenceLine1Position?: number
89
+ showReferenceLine2?: boolean
90
+ referenceLine2Config?: referenceConfigType
91
+ referenceLine2Position?: number
92
+ showReferenceLine3?: boolean
93
+ referenceLine3Config?: referenceConfigType
94
+ referenceLine3Position?: number
95
+
96
+ showVerticalLines?: boolean
97
+ verticalLinesUptoDataPoint?: boolean
98
+ verticalLinesThickness?: number
99
+ verticalLinesHeight?: number
100
+ verticalLinesColor?: ColorValue
101
+ verticalLinesStrokeDashArray?: number[]
102
+ verticalLinesShift?: number
103
+ verticalLinesZIndex?: number
104
+ noOfVerticalLines?: number
105
+ verticalLinesSpacing?: number
106
+ hideAxesAndRules?: boolean
107
+ areaChart?: boolean
108
+ areaChart1?: boolean
109
+ areaChart2?: boolean
110
+ areaChart3?: boolean
111
+ areaChart4?: boolean
112
+ areaChart5?: boolean
113
+ stepChart?: boolean
114
+ stepChart1?: boolean
115
+ stepChart2?: boolean
116
+ stepChart3?: boolean
117
+ stepChart4?: boolean
118
+ stepChart5?: boolean
119
+ edgePosition?: EdgePosition
120
+
121
+ disableScroll?: boolean
122
+ pointerConfig?: Pointer
123
+ showScrollIndicator?: boolean
124
+ indicatorColor?: 'black' | 'default' | 'white'
125
+
126
+ // Indices
127
+
128
+ showYAxisIndices?: boolean
129
+ showXAxisIndices?: boolean
130
+ yAxisIndicesHeight?: number
131
+ xAxisIndicesHeight?: number
132
+ yAxisIndicesWidth?: number
133
+ xAxisIndicesWidth?: number
134
+ xAxisIndicesColor?: ColorValue
135
+ yAxisIndicesColor?: ColorValue
136
+ yAxisSide?: yAxisSides
137
+ yAxisOffset?: number
138
+
139
+ startIndex?: number
140
+ startIndex1?: number
141
+ startIndex2?: number
142
+ startIndex3?: number
143
+ startIndex4?: number
144
+ startIndex5?: number
145
+ endIndex?: number
146
+ endIndex1?: number
147
+ endIndex2?: number
148
+ endIndex3?: number
149
+ endIndex4?: number
150
+ endIndex5?: number
151
+
152
+ color?: string
153
+ color1?: string
154
+ color2?: string
155
+ color3?: string
156
+ color4?: string
157
+ color5?: string
158
+ yAxisThickness?: number
159
+ yAxisColor?: ColorValue
160
+ yAxisExtraHeight?: number
161
+ trimYAxisAtTop?: boolean
162
+ yAxisLabelContainerStyle?: any
163
+ horizontalRulesStyle?: any
164
+ yAxisTextStyle?: any
165
+ yAxisTextNumberOfLines?: number
166
+ xAxisTextNumberOfLines?: number
167
+ showFractionalValues?: boolean
168
+ roundToDigits?: number
169
+ yAxisLabelWidth?: number
170
+ hideYAxisText?: boolean
171
+
172
+ backgroundColor?: ColorValue
173
+ curved?: boolean
174
+ curvature?: number
175
+ curveType?: CurveType
176
+ horizSections?: sectionType[]
177
+
178
+ // Data points
179
+
180
+ hideDataPoints?: boolean
181
+ dataPointsHeight?: number
182
+ dataPointsWidth?: number
183
+ dataPointsRadius?: number
184
+ dataPointsColor?: string
185
+ dataPointsShape?: string
186
+ hideDataPoints1?: boolean
187
+ dataPointsHeight1?: number
188
+ dataPointsWidth1?: number
189
+ dataPointsRadius1?: number
190
+ dataPointsColor1?: string
191
+ dataPointsShape1?: string
192
+ hideDataPoints2?: boolean
193
+ dataPointsHeight2?: number
194
+ dataPointsWidth2?: number
195
+ dataPointsRadius2?: number
196
+ dataPointsColor2?: string
197
+ dataPointsShape2?: string
198
+ hideDataPoints3?: boolean
199
+ dataPointsHeight3?: number
200
+ dataPointsWidth3?: number
201
+ dataPointsRadius3?: number
202
+ dataPointsColor3?: string
203
+ dataPointsShape3?: string
204
+ hideDataPoints4?: boolean
205
+ dataPointsHeight4?: number
206
+ dataPointsWidth4?: number
207
+ dataPointsRadius4?: number
208
+ dataPointsColor4?: string
209
+ dataPointsShape4?: string
210
+ hideDataPoints5?: boolean
211
+ dataPointsHeight5?: number
212
+ dataPointsWidth5?: number
213
+ dataPointsRadius5?: number
214
+ dataPointsColor5?: string
215
+ dataPointsShape5?: string
216
+ customDataPoint?: Function
217
+
218
+ focusedDataPointShape?: string
219
+ focusedDataPointWidth?: number
220
+ focusedDataPointHeight?: number
221
+ focusedDataPointColor?: ColorValue | string | any
222
+ focusedDataPointRadius?: number
223
+ focusedCustomDataPoint?: Function
224
+ dataPointLabelWidth?: number
225
+ dataPointLabelShiftX?: number
226
+ dataPointLabelShiftY?: number
227
+
228
+ startFillColor?: string
229
+ endFillColor?: string
230
+ startOpacity?: number
231
+ endOpacity?: number
232
+ startFillColor1?: string
233
+ endFillColor1?: string
234
+ startOpacity1?: number
235
+ endOpacity1?: number
236
+ startFillColor2?: string
237
+ endFillColor2?: string
238
+ startOpacity2?: number
239
+ endOpacity2?: number
240
+ startFillColor3?: string
241
+ endFillColor3?: string
242
+ startOpacity3?: number
243
+ endOpacity3?: number
244
+ startFillColor4?: string
245
+ endFillColor4?: string
246
+ startOpacity4?: number
247
+ endOpacity4?: number
248
+ startFillColor5?: string
249
+ endFillColor5?: string
250
+ startOpacity5?: number
251
+ endOpacity5?: number
252
+ gradientDirection?: string
253
+
254
+ areaGradientComponent?: () => any
255
+ areaGradientId?: string
256
+
257
+ textFontSize?: number
258
+ textColor?: string
259
+ textFontSize1?: number
260
+ textColor1?: string
261
+ textFontSize2?: number
262
+ textColor2?: string
263
+ textFontSize3?: number
264
+ textColor3?: string
265
+ textFontSize4?: number
266
+ textColor4?: string
267
+ textFontSize5?: number
268
+ textColor5?: string
269
+ hideOrigin?: boolean
270
+ textShiftX?: number
271
+ textShiftY?: number
272
+ yAxisLabelTexts?: string[]
273
+ xAxisLabelTexts?: string[]
274
+ xAxisLabelTextStyle?: any
275
+ xAxisLabelsHeight?: number
276
+ xAxisLabelsVerticalShift?: number
277
+ width?: number
278
+ yAxisLabelPrefix?: string
279
+ yAxisLabelSuffix?: string
280
+ scrollRef?: any
281
+ scrollToEnd?: boolean
282
+ scrollToIndex?: number
283
+ scrollAnimation?: boolean
284
+ scrollEventThrottle?: number
285
+ noOfSectionsBelowXAxis?: number
286
+ labelsExtraHeight?: number
287
+ adjustToWidth?: boolean
288
+ getPointerProps?: Function
289
+ showArrows?: boolean
290
+ arrowConfig?: arrowConfigType
291
+ showArrow1?: boolean
292
+ arrowConfig1?: arrowConfigType
293
+ showArrow2?: boolean
294
+ arrowConfig2?: arrowConfigType
295
+ showArrow3?: boolean
296
+ arrowConfig3?: arrowConfigType
297
+ showArrow4?: boolean
298
+ arrowConfig4?: arrowConfigType
299
+ showArrow5?: boolean
300
+ arrowConfig5?: arrowConfigType
301
+
302
+ secondaryData?: lineDataItem[]
303
+ secondaryYAxis?: secondaryYAxisType
304
+ secondaryLineConfig?: secondaryLineConfigType
305
+ formatYLabel?: (label: string) => string
306
+ lineGradient?: boolean
307
+ lineGradientComponent?: () => any
308
+ lineGradientId?: string
309
+ lineGradientDirection?: string
310
+ lineGradientStartColor?: string
311
+ lineGradientEndColor?: string
312
+ lineSegments?: LineSegment[]
313
+ lineSegments2?: LineSegment[]
314
+ lineSegments3?: LineSegment[]
315
+ lineSegments4?: LineSegment[]
316
+ lineSegments5?: LineSegment[]
317
+ highlightedRange?: HighlightedRange
318
+
319
+ onEndReached?: () => void
320
+ onStartReached?: () => void
321
+ endReachedOffset?: number
322
+ onScroll?: Function
323
+
324
+ showDataPointsForMissingValues?: boolean
325
+ interpolateMissingValues?: boolean
326
+ onlyPositive?: boolean
327
+ }
328
+
329
+ export interface lineDataItem {
330
+ value: number
331
+ label?: string
332
+ labelComponent?: Function
333
+ labelTextStyle?: any
334
+ dataPointText?: string
335
+ textShiftX?: number
336
+ textShiftY?: number
337
+ textColor?: string
338
+ textFontSize?: number
339
+
340
+ hideDataPoint?: boolean
341
+ dataPointHeight?: number
342
+ dataPointWidth?: number
343
+ dataPointRadius?: number
344
+ dataPointColor?: string
345
+ dataPointShape?: string
346
+ customDataPoint?: Function
347
+
348
+ stripHeight?: number
349
+ stripWidth?: number
350
+ stripColor?: ColorValue | string | any
351
+ stripOpacity?: number
352
+
353
+ focusedDataPointShape?: string
354
+ focusedDataPointWidth?: number
355
+ focusedDataPointHeight?: number
356
+ focusedDataPointColor?: ColorValue | string | any
357
+ focusedDataPointRadius?: number
358
+ focusedCustomDataPoint?: Function
359
+
360
+ dataPointLabelComponent?: Function
361
+ focusedDataPointLabelComponent?: Function
362
+ dataPointLabelWidth?: number
363
+ dataPointLabelShiftX?: number
364
+ dataPointLabelShiftY?: number
365
+ showStrip?: boolean
366
+
367
+ showVerticalLine?: boolean
368
+ verticalLineUptoDataPoint?: boolean
369
+ verticalLineColor?: string
370
+ verticalLineThickness?: number
371
+ verticalLineStrokeDashArray?: number[]
372
+ pointerShiftX?: number
373
+ pointerShiftY?: number
374
+ onPress?: Function
375
+ showXAxisIndex?: boolean
376
+ }
377
+
378
+ interface sectionType {
379
+ value: string
380
+ }
381
+
382
+ export interface bicolorLineDataItem {
383
+ value: number
384
+ label?: string
385
+ labelComponent?: Function
386
+ labelTextStyle?: any
387
+ dataPointText?: string
388
+ textShiftX?: number
389
+ textShiftY?: number
390
+ textColor?: string
391
+ textFontSize?: number
392
+
393
+ hideDataPoint?: boolean
394
+ dataPointHeight?: number
395
+ dataPointWidth?: number
396
+ dataPointRadius?: number
397
+ dataPointColor?: string
398
+ dataPointShape?: string
399
+ customDataPoint?: Function
400
+
401
+ stripHeight?: number
402
+ stripWidth?: number
403
+ stripColor?: ColorValue | string | any
404
+ stripOpacity?: number
405
+
406
+ focusedDataPointShape?: string
407
+ focusedDataPointWidth?: number
408
+ focusedDataPointHeight?: number
409
+ focusedDataPointColor?: ColorValue | string | any
410
+ focusedDataPointRadius?: number
411
+ focusedCustomDataPoint?: Function
412
+
413
+ dataPointLabelComponent?: Function
414
+ focusedDataPointLabelComponent?: Function
415
+ dataPointLabelWidth?: number
416
+ dataPointLabelShiftX?: number
417
+ dataPointLabelShiftY?: number
418
+ showStrip?: boolean
419
+
420
+ showVerticalLine?: boolean
421
+ verticalLineUptoDataPoint?: boolean
422
+ verticalLineColor?: string
423
+ verticalLineThickness?: number
424
+ pointerShiftX?: number
425
+ pointerShiftY?: number
426
+ onPress?: Function
427
+ }
428
+
429
+ export interface LineChartBicolorPropsType {
430
+ height?: number
431
+ overflowTop?: number
432
+ noOfSections?: number
433
+ maxValue?: number
434
+ mostNegativeValue?: number
435
+ stepHeight?: number
436
+ stepValue?: number
437
+ spacing?: number
438
+ initialSpacing?: number
439
+ endSpacing?: number
440
+ data?: bicolorLineDataItem[]
441
+ zIndex?: number
442
+ thickness?: number
443
+ strokeDashArray?: number[]
444
+ rotateLabel?: boolean
445
+ isAnimated?: boolean
446
+ animationDuration?: number
447
+ onDataChangeAnimationDuration?: number
448
+ animationEasing?: any
449
+ xAxisLength?: number
450
+ xAxisThickness?: number
451
+ xAxisColor?: ColorValue
452
+ xAxisType?: RuleType
453
+ hideRules?: boolean
454
+ rulesLength?: number
455
+ rulesColor?: ColorValue
456
+ rulesThickness?: number
457
+ focusEnabled?: boolean
458
+ onFocus?: Function
459
+ showDataPointOnFocus?: boolean
460
+ showStripOnFocus?: boolean
461
+ showTextOnFocus?: boolean
462
+ stripHeight?: number
463
+ stripWidth?: number
464
+ stripColor?: ColorValue | string | any
465
+ stripOpacity?: number
466
+ onPress?: Function
467
+ unFocusOnPressOut?: boolean
468
+ delayBeforeUnFocus?: number
469
+
470
+ rulesType?: RuleType
471
+ dashWidth?: number
472
+ dashGap?: number
473
+ showReferenceLine1?: boolean
474
+ referenceLine1Config?: referenceConfigType
475
+ referenceLine1Position?: number
476
+ showReferenceLine2?: boolean
477
+ referenceLine2Config?: referenceConfigType
478
+ referenceLine2Position?: number
479
+ showReferenceLine3?: boolean
480
+ referenceLine3Config?: referenceConfigType
481
+ referenceLine3Position?: number
482
+
483
+ showVerticalLines?: boolean
484
+ verticalLinesUptoDataPoint?: boolean
485
+ verticalLinesThickness?: number
486
+ verticalLinesHeight?: number
487
+ verticalLinesColor?: ColorValue
488
+ verticalLinesStrokeDashArray?: number[]
489
+ verticalLinesShift?: number
490
+ verticalLinesZIndex?: number
491
+ noOfVerticalLines?: number
492
+ verticalLinesSpacing?: number
493
+ hideAxesAndRules?: boolean
494
+ areaChart?: boolean
495
+
496
+ disableScroll?: boolean
497
+ showScrollIndicator?: boolean
498
+ indicatorColor?: 'black' | 'default' | 'white'
499
+
500
+ // Indices
501
+
502
+ showYAxisIndices?: boolean
503
+ showXAxisIndices?: boolean
504
+ yAxisIndicesHeight?: number
505
+ xAxisIndicesHeight?: number
506
+ yAxisIndicesWidth?: number
507
+ xAxisIndicesWidth?: number
508
+ xAxisIndicesColor?: ColorValue
509
+ yAxisIndicesColor?: ColorValue
510
+ yAxisSide?: yAxisSides
511
+ yAxisOffset?: number
512
+
513
+ startIndex?: number
514
+ endIndex?: number
515
+
516
+ color?: string
517
+ colorNegative?: string
518
+ yAxisThickness?: number
519
+ yAxisColor?: ColorValue
520
+ yAxisLabelContainerStyle?: any
521
+ horizontalRulesStyle?: any
522
+ yAxisTextStyle?: any
523
+ yAxisTextNumberOfLines?: number
524
+ xAxisTextNumberOfLines?: number
525
+ showFractionalValues?: boolean
526
+ roundToDigits?: number
527
+ yAxisLabelWidth?: number
528
+ hideYAxisText?: boolean
529
+
530
+ backgroundColor?: ColorValue
531
+ curved?: boolean
532
+ horizSections?: sectionType[]
533
+
534
+ // Data points
535
+
536
+ hideDataPoints?: boolean
537
+ dataPointsHeight?: number
538
+ dataPointsWidth?: number
539
+ dataPointsRadius?: number
540
+ dataPointsColor?: string
541
+ dataPointsShape?: string
542
+ customDataPoint?: Function
543
+
544
+ focusedDataPointShape?: string
545
+ focusedDataPointWidth?: number
546
+ focusedDataPointHeight?: number
547
+ focusedDataPointColor?: ColorValue | string | any
548
+ focusedDataPointRadius?: number
549
+ focusedCustomDataPoint?: Function
550
+ dataPointLabelWidth?: number
551
+ dataPointLabelShiftX?: number
552
+ dataPointLabelShiftY?: number
553
+
554
+ startFillColor?: string
555
+ endFillColor?: string
556
+ startFillColorNegative?: string
557
+ endFillColorNegative?: string
558
+ startOpacity?: number
559
+ endOpacity?: number
560
+ startOpacityNegative?: number
561
+ endOpacityNegative?: number
562
+ gradientDirection?: string
563
+
564
+ textFontSize?: number
565
+ textColor?: string
566
+ hideOrigin?: boolean
567
+ textShiftX?: number
568
+ textShiftY?: number
569
+ yAxisLabelTexts?: string[]
570
+ xAxisLabelTexts?: string[]
571
+ xAxisLabelTextStyle?: any
572
+ width?: number
573
+ yAxisLabelPrefix?: string
574
+ yAxisLabelSuffix?: string
575
+ scrollToEnd?: boolean
576
+ scrollToIndex?: number
577
+ scrollAnimation?: boolean
578
+ scrollEventThrottle?: number
579
+ noOfSectionsBelowXAxis?: number
580
+ labelsExtraHeight?: number
581
+ adjustToWidth?: boolean
582
+ getPointerProps?: Function
583
+ formatYLabel?: (label: string) => string
584
+ onScroll?: Function
585
+ endReachedOffset?: number
586
+ }
587
+
588
+ export interface IDataSanitisationProps {
589
+ showDataPointsForMissingValues: boolean | undefined
590
+ interpolateMissingValues: boolean
591
+ onlyPositive: boolean | undefined
592
+ yAxisOffset: number | undefined
593
+ }