react-native-gifted-charts 1.3.33 → 1.4.0
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 +9 -2
- package/package.json +2 -1
- package/src/BarChart/Animated2DWithGradient.tsx +13 -154
- package/src/BarChart/RenderBars.tsx +29 -179
- package/src/BarChart/RenderStackBars.tsx +22 -104
- package/src/BarChart/index.tsx +87 -686
- package/src/Components/AnimatedThreeDBar/index.tsx +16 -48
- package/src/Components/BarAndLineChartsWrapper/index.tsx +38 -283
- package/src/Components/BarAndLineChartsWrapper/renderHorizSections.tsx +17 -339
- package/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/index.tsx +147 -0
- package/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderDataPoints.tsx +157 -0
- package/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificDataPoints.tsx +86 -0
- package/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificVerticalLines.tsx +42 -0
- package/src/Components/BarAndLineChartsWrapper/renderVerticalLines.tsx +1 -1
- package/src/Components/BarSpecificComponents/cap.tsx +1 -1
- package/src/Components/common/StripAndLabel.tsx +3 -56
- package/src/Components/lineSvg.tsx +1 -1
- package/src/LineChart/LineChartBicolor.tsx +80 -516
- package/src/LineChart/index.tsx +266 -1778
- package/src/PieChart/index.tsx +20 -84
- package/src/PieChart/main.tsx +47 -119
- package/src/PopulationPyramid/index.tsx +90 -203
- package/src/index.tsx +2 -14
- package/src/BarChart/types.ts +0 -394
- package/src/Components/BarAndLineChartsWrapper/renderLineInBarChart.tsx +0 -402
- package/src/LineChart/types.ts +0 -575
- package/src/PieChart/types.ts +0 -77
- package/src/PopulationPyramid/types.ts +0 -200
- package/src/utils/constants.ts +0 -333
- package/src/utils/index.tsx +0 -1137
- package/src/utils/types.ts +0 -360
package/src/LineChart/types.ts
DELETED
|
@@ -1,575 +0,0 @@
|
|
|
1
|
-
import {ColorValue} from 'react-native';
|
|
2
|
-
import {yAxisSides} from '../utils/constants';
|
|
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
|
-
|
|
320
|
-
export type lineDataItem = {
|
|
321
|
-
value: number;
|
|
322
|
-
label?: String;
|
|
323
|
-
labelComponent?: Function;
|
|
324
|
-
labelTextStyle?: any;
|
|
325
|
-
dataPointText?: string;
|
|
326
|
-
textShiftX?: number;
|
|
327
|
-
textShiftY?: number;
|
|
328
|
-
textColor?: string;
|
|
329
|
-
textFontSize?: number;
|
|
330
|
-
|
|
331
|
-
hideDataPoint?: boolean;
|
|
332
|
-
dataPointHeight?: number;
|
|
333
|
-
dataPointWidth?: number;
|
|
334
|
-
dataPointRadius?: number;
|
|
335
|
-
dataPointColor?: string;
|
|
336
|
-
dataPointShape?: string;
|
|
337
|
-
customDataPoint?: Function;
|
|
338
|
-
|
|
339
|
-
stripHeight?: number;
|
|
340
|
-
stripWidth?: number;
|
|
341
|
-
stripColor?: ColorValue | String | any;
|
|
342
|
-
stripOpacity?: number;
|
|
343
|
-
|
|
344
|
-
focusedDataPointShape?: String;
|
|
345
|
-
focusedDataPointWidth?: number;
|
|
346
|
-
focusedDataPointHeight?: number;
|
|
347
|
-
focusedDataPointColor?: ColorValue | String | any;
|
|
348
|
-
focusedDataPointRadius?: number;
|
|
349
|
-
focusedCustomDataPoint?: Function;
|
|
350
|
-
|
|
351
|
-
dataPointLabelComponent?: Function;
|
|
352
|
-
focusedDataPointLabelComponent?: Function;
|
|
353
|
-
dataPointLabelWidth?: number;
|
|
354
|
-
dataPointLabelShiftX?: number;
|
|
355
|
-
dataPointLabelShiftY?: number;
|
|
356
|
-
showStrip?: boolean;
|
|
357
|
-
|
|
358
|
-
showVerticalLine?: boolean;
|
|
359
|
-
verticalLineUptoDataPoint?: boolean;
|
|
360
|
-
verticalLineColor?: string;
|
|
361
|
-
verticalLineThickness?: number;
|
|
362
|
-
verticalLineStrokeDashArray?: Array<number>;
|
|
363
|
-
pointerShiftX?: number;
|
|
364
|
-
pointerShiftY?: number;
|
|
365
|
-
onPress?: Function;
|
|
366
|
-
showXAxisIndex?: boolean;
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
type sectionType = {
|
|
370
|
-
value: string;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
export type bicolorLineDataItem = {
|
|
374
|
-
value: number;
|
|
375
|
-
label?: String;
|
|
376
|
-
labelComponent?: Function;
|
|
377
|
-
labelTextStyle?: any;
|
|
378
|
-
dataPointText?: string;
|
|
379
|
-
textShiftX?: number;
|
|
380
|
-
textShiftY?: number;
|
|
381
|
-
textColor?: string;
|
|
382
|
-
textFontSize?: number;
|
|
383
|
-
|
|
384
|
-
hideDataPoint?: boolean;
|
|
385
|
-
dataPointHeight?: number;
|
|
386
|
-
dataPointWidth?: number;
|
|
387
|
-
dataPointRadius?: number;
|
|
388
|
-
dataPointColor?: string;
|
|
389
|
-
dataPointShape?: string;
|
|
390
|
-
customDataPoint?: Function;
|
|
391
|
-
|
|
392
|
-
stripHeight?: number;
|
|
393
|
-
stripWidth?: number;
|
|
394
|
-
stripColor?: ColorValue | String | any;
|
|
395
|
-
stripOpacity?: number;
|
|
396
|
-
|
|
397
|
-
focusedDataPointShape?: String;
|
|
398
|
-
focusedDataPointWidth?: number;
|
|
399
|
-
focusedDataPointHeight?: number;
|
|
400
|
-
focusedDataPointColor?: ColorValue | String | any;
|
|
401
|
-
focusedDataPointRadius?: number;
|
|
402
|
-
focusedCustomDataPoint?: Function;
|
|
403
|
-
|
|
404
|
-
dataPointLabelComponent?: Function;
|
|
405
|
-
focusedDataPointLabelComponent?: Function;
|
|
406
|
-
dataPointLabelWidth?: number;
|
|
407
|
-
dataPointLabelShiftX?: number;
|
|
408
|
-
dataPointLabelShiftY?: number;
|
|
409
|
-
showStrip?: boolean;
|
|
410
|
-
|
|
411
|
-
showVerticalLine?: boolean;
|
|
412
|
-
verticalLineUptoDataPoint?: boolean;
|
|
413
|
-
verticalLineColor?: string;
|
|
414
|
-
verticalLineThickness?: number;
|
|
415
|
-
pointerShiftX?: number;
|
|
416
|
-
pointerShiftY?: number;
|
|
417
|
-
onPress?: Function;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
export type LineChartBicolorPropsType = {
|
|
421
|
-
height?: number;
|
|
422
|
-
overflowTop?: number;
|
|
423
|
-
noOfSections?: number;
|
|
424
|
-
maxValue?: number;
|
|
425
|
-
mostNegativeValue?: number;
|
|
426
|
-
stepHeight?: number;
|
|
427
|
-
stepValue?: number;
|
|
428
|
-
spacing?: number;
|
|
429
|
-
initialSpacing?: number;
|
|
430
|
-
endSpacing?: number;
|
|
431
|
-
data?: Array<bicolorLineDataItem>;
|
|
432
|
-
zIndex?: number;
|
|
433
|
-
thickness?: number;
|
|
434
|
-
strokeDashArray?: Array<number>;
|
|
435
|
-
rotateLabel?: boolean;
|
|
436
|
-
isAnimated?: boolean;
|
|
437
|
-
animationDuration?: number;
|
|
438
|
-
onDataChangeAnimationDuration?: number;
|
|
439
|
-
animationEasing?: any;
|
|
440
|
-
xAxisLength?: number;
|
|
441
|
-
xAxisThickness?: number;
|
|
442
|
-
xAxisColor?: ColorValue;
|
|
443
|
-
xAxisType?: RuleType;
|
|
444
|
-
hideRules?: boolean;
|
|
445
|
-
rulesLength?: number;
|
|
446
|
-
rulesColor?: ColorValue;
|
|
447
|
-
rulesThickness?: number;
|
|
448
|
-
focusEnabled?: boolean;
|
|
449
|
-
onFocus?: Function;
|
|
450
|
-
showDataPointOnFocus?: boolean;
|
|
451
|
-
showStripOnFocus?: boolean;
|
|
452
|
-
showTextOnFocus?: boolean;
|
|
453
|
-
stripHeight?: number;
|
|
454
|
-
stripWidth?: number;
|
|
455
|
-
stripColor?: ColorValue | String | any;
|
|
456
|
-
stripOpacity?: number;
|
|
457
|
-
onPress?: Function;
|
|
458
|
-
unFocusOnPressOut?: boolean;
|
|
459
|
-
delayBeforeUnFocus?: number;
|
|
460
|
-
|
|
461
|
-
rulesType?: RuleType;
|
|
462
|
-
dashWidth?: number;
|
|
463
|
-
dashGap?: number;
|
|
464
|
-
showReferenceLine1?: boolean;
|
|
465
|
-
referenceLine1Config?: referenceConfigType;
|
|
466
|
-
referenceLine1Position?: number;
|
|
467
|
-
showReferenceLine2?: boolean;
|
|
468
|
-
referenceLine2Config?: referenceConfigType;
|
|
469
|
-
referenceLine2Position?: number;
|
|
470
|
-
showReferenceLine3?: boolean;
|
|
471
|
-
referenceLine3Config?: referenceConfigType;
|
|
472
|
-
referenceLine3Position?: number;
|
|
473
|
-
|
|
474
|
-
showVerticalLines?: boolean;
|
|
475
|
-
verticalLinesUptoDataPoint?: boolean;
|
|
476
|
-
verticalLinesThickness?: number;
|
|
477
|
-
verticalLinesHeight?: number;
|
|
478
|
-
verticalLinesColor?: ColorValue;
|
|
479
|
-
verticalLinesStrokeDashArray?: Array<number>;
|
|
480
|
-
verticalLinesShift?: number;
|
|
481
|
-
verticalLinesZIndex?: number;
|
|
482
|
-
noOfVerticalLines?: number;
|
|
483
|
-
verticalLinesSpacing?: number;
|
|
484
|
-
hideAxesAndRules?: boolean;
|
|
485
|
-
areaChart?: boolean;
|
|
486
|
-
|
|
487
|
-
disableScroll?: boolean;
|
|
488
|
-
showScrollIndicator?: boolean;
|
|
489
|
-
indicatorColor?: 'black' | 'default' | 'white';
|
|
490
|
-
|
|
491
|
-
//Indices
|
|
492
|
-
|
|
493
|
-
showYAxisIndices?: boolean;
|
|
494
|
-
showXAxisIndices?: boolean;
|
|
495
|
-
yAxisIndicesHeight?: number;
|
|
496
|
-
xAxisIndicesHeight?: number;
|
|
497
|
-
yAxisIndicesWidth?: number;
|
|
498
|
-
xAxisIndicesWidth?: number;
|
|
499
|
-
xAxisIndicesColor?: ColorValue;
|
|
500
|
-
yAxisIndicesColor?: ColorValue;
|
|
501
|
-
yAxisSide?: yAxisSides;
|
|
502
|
-
yAxisOffset?: number;
|
|
503
|
-
|
|
504
|
-
startIndex?: number;
|
|
505
|
-
endIndex?: number;
|
|
506
|
-
|
|
507
|
-
color?: string;
|
|
508
|
-
colorNegative?: string;
|
|
509
|
-
yAxisThickness?: number;
|
|
510
|
-
yAxisColor?: ColorValue;
|
|
511
|
-
yAxisLabelContainerStyle?: any;
|
|
512
|
-
horizontalRulesStyle?: any;
|
|
513
|
-
yAxisTextStyle?: any;
|
|
514
|
-
yAxisTextNumberOfLines?: number;
|
|
515
|
-
xAxisTextNumberOfLines?: number;
|
|
516
|
-
showFractionalValues?: boolean;
|
|
517
|
-
roundToDigits?: number;
|
|
518
|
-
yAxisLabelWidth?: number;
|
|
519
|
-
hideYAxisText?: boolean;
|
|
520
|
-
|
|
521
|
-
backgroundColor?: ColorValue;
|
|
522
|
-
curved?: boolean;
|
|
523
|
-
horizSections?: Array<sectionType>;
|
|
524
|
-
|
|
525
|
-
//Data points
|
|
526
|
-
|
|
527
|
-
hideDataPoints?: boolean;
|
|
528
|
-
dataPointsHeight?: number;
|
|
529
|
-
dataPointsWidth?: number;
|
|
530
|
-
dataPointsRadius?: number;
|
|
531
|
-
dataPointsColor?: string;
|
|
532
|
-
dataPointsShape?: string;
|
|
533
|
-
customDataPoint?: Function;
|
|
534
|
-
|
|
535
|
-
focusedDataPointShape?: String;
|
|
536
|
-
focusedDataPointWidth?: number;
|
|
537
|
-
focusedDataPointHeight?: number;
|
|
538
|
-
focusedDataPointColor?: ColorValue | String | any;
|
|
539
|
-
focusedDataPointRadius?: number;
|
|
540
|
-
focusedCustomDataPoint?: Function;
|
|
541
|
-
dataPointLabelWidth?: number;
|
|
542
|
-
dataPointLabelShiftX?: number;
|
|
543
|
-
dataPointLabelShiftY?: number;
|
|
544
|
-
|
|
545
|
-
startFillColor?: string;
|
|
546
|
-
endFillColor?: string;
|
|
547
|
-
startFillColorNegative?: string;
|
|
548
|
-
endFillColorNegative?: string;
|
|
549
|
-
startOpacity?: number;
|
|
550
|
-
endOpacity?: number;
|
|
551
|
-
startOpacityNegative?: number;
|
|
552
|
-
endOpacityNegative?: number;
|
|
553
|
-
gradientDirection?: string;
|
|
554
|
-
|
|
555
|
-
textFontSize?: number;
|
|
556
|
-
textColor?: string;
|
|
557
|
-
hideOrigin?: boolean;
|
|
558
|
-
textShiftX?: number;
|
|
559
|
-
textShiftY?: number;
|
|
560
|
-
yAxisLabelTexts?: Array<string>;
|
|
561
|
-
xAxisLabelTexts?: Array<string>;
|
|
562
|
-
xAxisLabelTextStyle?: any;
|
|
563
|
-
width?: number;
|
|
564
|
-
yAxisLabelPrefix?: String;
|
|
565
|
-
yAxisLabelSuffix?: String;
|
|
566
|
-
scrollToEnd?: boolean;
|
|
567
|
-
scrollToIndex?: number;
|
|
568
|
-
scrollAnimation?: boolean;
|
|
569
|
-
scrollEventThrottle?: number;
|
|
570
|
-
noOfSectionsBelowXAxis?: number;
|
|
571
|
-
labelsExtraHeight?: number;
|
|
572
|
-
adjustToWidth?: boolean;
|
|
573
|
-
getPointerProps?: Function;
|
|
574
|
-
formatYLabel?: (label: string) => string;
|
|
575
|
-
};
|
package/src/PieChart/types.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {ColorValue} from 'react-native';
|
|
2
|
-
import {FontStyle} from 'react-native-svg';
|
|
3
|
-
|
|
4
|
-
export type PieChartPropsType = {
|
|
5
|
-
radius?: number;
|
|
6
|
-
isThreeD?: boolean;
|
|
7
|
-
donut?: boolean;
|
|
8
|
-
innerRadius?: number;
|
|
9
|
-
shadow?: boolean;
|
|
10
|
-
innerCircleColor?: ColorValue;
|
|
11
|
-
innerCircleBorderWidth?: number;
|
|
12
|
-
innerCircleBorderColor?: ColorValue;
|
|
13
|
-
shiftInnerCenterX?: number;
|
|
14
|
-
shiftInnerCenterY?: number;
|
|
15
|
-
shadowColor?: string;
|
|
16
|
-
shadowWidth?: number;
|
|
17
|
-
strokeWidth?: number;
|
|
18
|
-
strokeColor?: string;
|
|
19
|
-
backgroundColor?: string;
|
|
20
|
-
data: Array<pieDataItem>;
|
|
21
|
-
semiCircle?: boolean;
|
|
22
|
-
|
|
23
|
-
showText?: boolean;
|
|
24
|
-
textColor?: string;
|
|
25
|
-
textSize?: number;
|
|
26
|
-
fontStyle?: FontStyle;
|
|
27
|
-
fontWeight?: string;
|
|
28
|
-
font?: string;
|
|
29
|
-
showTextBackground?: boolean;
|
|
30
|
-
textBackgroundColor?: string;
|
|
31
|
-
textBackgroundRadius?: number;
|
|
32
|
-
showValuesAsLabels?: boolean;
|
|
33
|
-
|
|
34
|
-
centerLabelComponent?: Function;
|
|
35
|
-
tiltAngle?: string;
|
|
36
|
-
initialAngle?: number;
|
|
37
|
-
labelsPosition?: 'onBorder' | 'outward' | 'inward' | 'mid';
|
|
38
|
-
showGradient?: boolean;
|
|
39
|
-
gradientCenterColor?: string;
|
|
40
|
-
onPress?: Function;
|
|
41
|
-
focusOnPress?: boolean;
|
|
42
|
-
toggleFocusOnPress?: boolean;
|
|
43
|
-
selectedIndex?: number;
|
|
44
|
-
setSelectedIndex?: Function;
|
|
45
|
-
sectionAutoFocus?: boolean;
|
|
46
|
-
onLabelPress?: Function;
|
|
47
|
-
extraRadiusForFocused?: number;
|
|
48
|
-
inwardExtraLengthForFocused?: number;
|
|
49
|
-
pieInnerComponent?: (item?: pieDataItem, index?: number) => any;
|
|
50
|
-
pieInnerComponentHeight?: number;
|
|
51
|
-
pieInnerComponentWidth?: number;
|
|
52
|
-
};
|
|
53
|
-
export type pieDataItem = {
|
|
54
|
-
value: number;
|
|
55
|
-
shiftX?: number;
|
|
56
|
-
shiftY?: number;
|
|
57
|
-
color?: string;
|
|
58
|
-
gradientCenterColor?: string;
|
|
59
|
-
text?: string;
|
|
60
|
-
textColor?: string;
|
|
61
|
-
textSize?: number;
|
|
62
|
-
fontStyle?: FontStyle;
|
|
63
|
-
fontWeight?: string;
|
|
64
|
-
font?: string;
|
|
65
|
-
textBackgroundColor?: string;
|
|
66
|
-
textBackgroundRadius?: number;
|
|
67
|
-
shiftTextX?: number;
|
|
68
|
-
shiftTextY?: number;
|
|
69
|
-
labelPosition?: 'onBorder' | 'outward' | 'inward' | 'mid';
|
|
70
|
-
onPress?: Function;
|
|
71
|
-
onLabelPress?: Function;
|
|
72
|
-
strokeWidth?: number;
|
|
73
|
-
strokeColor?: string;
|
|
74
|
-
focused?: boolean;
|
|
75
|
-
peripheral?: boolean;
|
|
76
|
-
pieInnerComponent?: (item?: pieDataItem, index?: number) => any;
|
|
77
|
-
};
|