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.
- package/index.ts +6 -1
- package/package.json +12 -4
- package/src/BarChart/Animated2DWithGradient.ts +80 -46
- package/src/BarChart/RenderStackBars.ts +41 -41
- package/src/BarChart/index.ts +293 -275
- package/src/BarChart/types.ts +574 -572
- package/src/LineChart/LineChartBiColor.ts +272 -265
- package/src/LineChart/index.ts +750 -766
- package/src/LineChart/types.ts +592 -584
- package/src/PieChart/index.ts +82 -51
- package/src/PieChart/main.ts +71 -71
- package/src/PieChart/types.ts +83 -83
- package/src/PopulationPyramid/index.ts +39 -39
- package/src/PopulationPyramid/types.ts +195 -196
- package/src/components/AnimatedThreeDBar/{index.tsx → index.ts} +18 -18
- package/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.ts +97 -93
- package/src/components/BarAndLineChartsWrapper/index.ts +94 -90
- package/src/components/common/StripAndLabel.ts +28 -20
- package/src/components/common/types.ts +31 -0
- package/src/utils/constants.ts +90 -90
- package/src/utils/{index.tsx → index.ts} +720 -640
- package/src/utils/types.ts +352 -351
package/src/BarChart/types.ts
CHANGED
|
@@ -1,610 +1,612 @@
|
|
|
1
|
-
import { ColorValue, GestureResponderEvent, ViewStyle } from
|
|
2
|
-
import { yAxisSides } from
|
|
1
|
+
import { type ColorValue, type GestureResponderEvent, type ViewStyle } from 'react-native'
|
|
2
|
+
import { type yAxisSides } from '../utils/constants'
|
|
3
3
|
import {
|
|
4
|
-
CurveType,
|
|
5
|
-
Pointer,
|
|
6
|
-
RuleType,
|
|
7
|
-
RulesConfig,
|
|
8
|
-
referenceConfigType,
|
|
9
|
-
secondaryYAxisType
|
|
10
|
-
} from
|
|
11
|
-
import { Component, ReactNode } from
|
|
4
|
+
type CurveType,
|
|
5
|
+
type Pointer,
|
|
6
|
+
type RuleType,
|
|
7
|
+
type RulesConfig,
|
|
8
|
+
type referenceConfigType,
|
|
9
|
+
type secondaryYAxisType
|
|
10
|
+
} from '../utils/types'
|
|
11
|
+
import { type Component, type ReactNode } from 'react'
|
|
12
|
+
import { type lineDataItem } from '../LineChart/types'
|
|
12
13
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
export interface stackDataItem {
|
|
15
|
+
value?: number
|
|
16
|
+
onPress?: any
|
|
17
|
+
onLongPress?: any
|
|
18
|
+
onPressOut?: any
|
|
19
|
+
label?: string
|
|
20
|
+
barWidth?: number
|
|
21
|
+
spacing?: number
|
|
22
|
+
labelTextStyle?: any
|
|
23
|
+
topLabelComponent?: Function
|
|
24
|
+
topLabelContainerStyle?: any
|
|
25
|
+
topLabelTextStyle?: any
|
|
26
|
+
disablePress?: any
|
|
27
|
+
color?: ColorValue
|
|
28
|
+
showGradient?: boolean
|
|
29
|
+
gradientColor?: any
|
|
30
|
+
capThickness?: number
|
|
31
|
+
capColor?: ColorValue
|
|
32
|
+
capRadius?: number
|
|
33
|
+
labelComponent?: Function
|
|
32
34
|
stacks: Array<{
|
|
33
|
-
value: number
|
|
34
|
-
color?: ColorValue
|
|
35
|
-
onPress?: (event: GestureResponderEvent) => void
|
|
36
|
-
marginBottom?: number
|
|
37
|
-
borderRadius?: number
|
|
38
|
-
borderTopLeftRadius?: number
|
|
39
|
-
borderTopRightRadius?: number
|
|
40
|
-
borderBottomLeftRadius?: number
|
|
41
|
-
borderBottomRightRadius?: number
|
|
42
|
-
showGradient?: boolean
|
|
43
|
-
gradientColor?: ColorValue
|
|
44
|
-
barWidth?: number
|
|
45
|
-
innerBarComponent?: Function
|
|
46
|
-
}
|
|
47
|
-
barBackgroundPattern?: Function
|
|
48
|
-
borderRadius?: number
|
|
49
|
-
borderTopLeftRadius?: number
|
|
50
|
-
borderTopRightRadius?: number
|
|
51
|
-
borderBottomLeftRadius?: number
|
|
52
|
-
borderBottomRightRadius?: number
|
|
53
|
-
barInnerComponent?: (item?: stackDataItem, index?: number) => ReactNode
|
|
54
|
-
patternId?:
|
|
55
|
-
leftShiftForTooltip?: number
|
|
56
|
-
showXAxisIndex?: boolean
|
|
57
|
-
}
|
|
35
|
+
value: number
|
|
36
|
+
color?: ColorValue
|
|
37
|
+
onPress?: (event: GestureResponderEvent) => void
|
|
38
|
+
marginBottom?: number
|
|
39
|
+
borderRadius?: number
|
|
40
|
+
borderTopLeftRadius?: number
|
|
41
|
+
borderTopRightRadius?: number
|
|
42
|
+
borderBottomLeftRadius?: number
|
|
43
|
+
borderBottomRightRadius?: number
|
|
44
|
+
showGradient?: boolean
|
|
45
|
+
gradientColor?: ColorValue
|
|
46
|
+
barWidth?: number
|
|
47
|
+
innerBarComponent?: Function
|
|
48
|
+
}>
|
|
49
|
+
barBackgroundPattern?: Function
|
|
50
|
+
borderRadius?: number
|
|
51
|
+
borderTopLeftRadius?: number
|
|
52
|
+
borderTopRightRadius?: number
|
|
53
|
+
borderBottomLeftRadius?: number
|
|
54
|
+
borderBottomRightRadius?: number
|
|
55
|
+
barInnerComponent?: (item?: stackDataItem, index?: number) => ReactNode
|
|
56
|
+
patternId?: string
|
|
57
|
+
leftShiftForTooltip?: number
|
|
58
|
+
showXAxisIndex?: boolean
|
|
59
|
+
}
|
|
58
60
|
|
|
59
|
-
export
|
|
60
|
-
style?: any
|
|
61
|
-
width?: number
|
|
62
|
-
height?: number
|
|
63
|
-
color?: ColorValue
|
|
64
|
-
topLabelComponent?: Component
|
|
65
|
-
topLabelContainerStyle?: any
|
|
66
|
-
opacity?: number
|
|
67
|
-
label:
|
|
68
|
-
labelTextStyle?: any
|
|
69
|
-
disablePress?: boolean
|
|
61
|
+
export interface StackedBarChartPropsType {
|
|
62
|
+
style?: any
|
|
63
|
+
width?: number
|
|
64
|
+
height?: number
|
|
65
|
+
color?: ColorValue
|
|
66
|
+
topLabelComponent?: Component
|
|
67
|
+
topLabelContainerStyle?: any
|
|
68
|
+
opacity?: number
|
|
69
|
+
label: string
|
|
70
|
+
labelTextStyle?: any
|
|
71
|
+
disablePress?: boolean
|
|
70
72
|
|
|
71
|
-
item: stackDataItem
|
|
72
|
-
index: number
|
|
73
|
-
containerHeight?: number
|
|
74
|
-
maxValue: number
|
|
75
|
-
spacing: number
|
|
76
|
-
propSpacing?: number
|
|
77
|
-
data?: any
|
|
78
|
-
barWidth?: number
|
|
79
|
-
onPress?: Function
|
|
80
|
-
onLongPress?: Function
|
|
81
|
-
onPressOut?: Function
|
|
73
|
+
item: stackDataItem
|
|
74
|
+
index: number
|
|
75
|
+
containerHeight?: number
|
|
76
|
+
maxValue: number
|
|
77
|
+
spacing: number
|
|
78
|
+
propSpacing?: number
|
|
79
|
+
data?: any
|
|
80
|
+
barWidth?: number
|
|
81
|
+
onPress?: Function
|
|
82
|
+
onLongPress?: Function
|
|
83
|
+
onPressOut?: Function
|
|
82
84
|
|
|
83
|
-
rotateLabel?: boolean
|
|
84
|
-
showXAxisIndices: boolean
|
|
85
|
-
xAxisIndicesHeight: number
|
|
86
|
-
xAxisIndicesWidth: number
|
|
87
|
-
xAxisIndicesColor: ColorValue
|
|
88
|
-
horizontal: boolean
|
|
89
|
-
intactTopLabel: boolean
|
|
90
|
-
barBorderWidth?: number
|
|
91
|
-
barBorderColor: ColorValue
|
|
92
|
-
barBorderRadius?: number
|
|
93
|
-
barBorderTopLeftRadius?: number
|
|
94
|
-
barBorderTopRightRadius?: number
|
|
95
|
-
barBorderBottomLeftRadius?: number
|
|
96
|
-
barBorderBottomRightRadius?: number
|
|
85
|
+
rotateLabel?: boolean
|
|
86
|
+
showXAxisIndices: boolean
|
|
87
|
+
xAxisIndicesHeight: number
|
|
88
|
+
xAxisIndicesWidth: number
|
|
89
|
+
xAxisIndicesColor: ColorValue
|
|
90
|
+
horizontal: boolean
|
|
91
|
+
intactTopLabel: boolean
|
|
92
|
+
barBorderWidth?: number
|
|
93
|
+
barBorderColor: ColorValue
|
|
94
|
+
barBorderRadius?: number
|
|
95
|
+
barBorderTopLeftRadius?: number
|
|
96
|
+
barBorderTopRightRadius?: number
|
|
97
|
+
barBorderBottomLeftRadius?: number
|
|
98
|
+
barBorderBottomRightRadius?: number
|
|
97
99
|
barInnerComponent?: (
|
|
98
100
|
item?: barDataItem | stackDataItem,
|
|
99
101
|
index?: number
|
|
100
|
-
) => ReactNode
|
|
101
|
-
stackBorderRadius?: number
|
|
102
|
-
stackBorderTopLeftRadius?: number
|
|
103
|
-
stackBorderTopRightRadius?: number
|
|
104
|
-
stackBorderBottomLeftRadius?: number
|
|
105
|
-
stackBorderBottomRightRadius?: number
|
|
106
|
-
xAxisThickness: number
|
|
107
|
-
barBackgroundPattern?: Function
|
|
108
|
-
patternId?:
|
|
109
|
-
xAxisTextNumberOfLines: number
|
|
110
|
-
xAxisLabelsHeight?: number
|
|
111
|
-
xAxisLabelsVerticalShift: number
|
|
112
|
-
renderTooltip: Function | undefined
|
|
113
|
-
leftShiftForTooltip?: number
|
|
114
|
-
leftShiftForLastIndexTooltip: number
|
|
115
|
-
initialSpacing: number
|
|
116
|
-
selectedIndex: number
|
|
117
|
-
setSelectedIndex: Function
|
|
118
|
-
activeOpacity: number
|
|
119
|
-
showGradient?: boolean
|
|
120
|
-
gradientColor?: any
|
|
121
|
-
stackData:
|
|
122
|
-
isAnimated?: boolean
|
|
123
|
-
animationDuration?: number
|
|
124
|
-
pointerConfig?: Pointer
|
|
125
|
-
showValuesAsTopLabel?: boolean
|
|
126
|
-
}
|
|
102
|
+
) => ReactNode
|
|
103
|
+
stackBorderRadius?: number
|
|
104
|
+
stackBorderTopLeftRadius?: number
|
|
105
|
+
stackBorderTopRightRadius?: number
|
|
106
|
+
stackBorderBottomLeftRadius?: number
|
|
107
|
+
stackBorderBottomRightRadius?: number
|
|
108
|
+
xAxisThickness: number
|
|
109
|
+
barBackgroundPattern?: Function
|
|
110
|
+
patternId?: string
|
|
111
|
+
xAxisTextNumberOfLines: number
|
|
112
|
+
xAxisLabelsHeight?: number
|
|
113
|
+
xAxisLabelsVerticalShift: number
|
|
114
|
+
renderTooltip: Function | undefined
|
|
115
|
+
leftShiftForTooltip?: number
|
|
116
|
+
leftShiftForLastIndexTooltip: number
|
|
117
|
+
initialSpacing: number
|
|
118
|
+
selectedIndex: number
|
|
119
|
+
setSelectedIndex: Function
|
|
120
|
+
activeOpacity: number
|
|
121
|
+
showGradient?: boolean
|
|
122
|
+
gradientColor?: any
|
|
123
|
+
stackData: stackDataItem[]
|
|
124
|
+
isAnimated?: boolean
|
|
125
|
+
animationDuration?: number
|
|
126
|
+
pointerConfig?: Pointer
|
|
127
|
+
showValuesAsTopLabel?: boolean
|
|
128
|
+
}
|
|
127
129
|
|
|
128
|
-
export
|
|
129
|
-
width?: number
|
|
130
|
-
height?: number
|
|
131
|
-
overflowTop?: number
|
|
132
|
-
minHeight?: number
|
|
133
|
-
noOfSections?: number
|
|
134
|
-
noOfSectionsBelowXAxis?: number
|
|
135
|
-
maxValue?: number
|
|
136
|
-
mostNegativeValue?: number
|
|
137
|
-
stepHeight?: number
|
|
138
|
-
stepValue?: number
|
|
139
|
-
spacing?: number
|
|
140
|
-
data?:
|
|
141
|
-
stackData?:
|
|
142
|
-
side?:
|
|
143
|
-
rotateLabel?: boolean
|
|
144
|
-
isAnimated?: boolean
|
|
145
|
-
animationDuration?: number
|
|
130
|
+
export interface BarChartPropsType {
|
|
131
|
+
width?: number
|
|
132
|
+
height?: number
|
|
133
|
+
overflowTop?: number
|
|
134
|
+
minHeight?: number
|
|
135
|
+
noOfSections?: number
|
|
136
|
+
noOfSectionsBelowXAxis?: number
|
|
137
|
+
maxValue?: number
|
|
138
|
+
mostNegativeValue?: number
|
|
139
|
+
stepHeight?: number
|
|
140
|
+
stepValue?: number
|
|
141
|
+
spacing?: number
|
|
142
|
+
data?: barDataItem[]
|
|
143
|
+
stackData?: stackDataItem[]
|
|
144
|
+
side?: string
|
|
145
|
+
rotateLabel?: boolean
|
|
146
|
+
isAnimated?: boolean
|
|
147
|
+
animationDuration?: number
|
|
146
148
|
// animationEasing?: any;
|
|
147
|
-
opacity?: number
|
|
148
|
-
isThreeD?: boolean
|
|
149
|
-
xAxisLength?: number
|
|
150
|
-
xAxisThickness?: number
|
|
151
|
-
xAxisColor?: ColorValue
|
|
152
|
-
yAxisThickness?: number
|
|
153
|
-
yAxisColor?: ColorValue
|
|
154
|
-
yAxisExtraHeight?: number
|
|
155
|
-
trimYAxisAtTop?: boolean
|
|
156
|
-
xAxisType?: RuleType
|
|
157
|
-
yAxisLabelContainerStyle?: any
|
|
158
|
-
horizontalRulesStyle?: any
|
|
159
|
-
yAxisTextStyle?: any
|
|
160
|
-
yAxisTextNumberOfLines?: number
|
|
161
|
-
xAxisTextNumberOfLines?: number
|
|
162
|
-
xAxisLabelsHeight?: number
|
|
163
|
-
xAxisLabelsVerticalShift?: number
|
|
164
|
-
yAxisLabelWidth?: number
|
|
165
|
-
hideYAxisText?: boolean
|
|
166
|
-
rotateYAxisTexts?: number
|
|
167
|
-
yAxisSide?: yAxisSides
|
|
168
|
-
yAxisOffset?: number
|
|
169
|
-
initialSpacing?: number
|
|
170
|
-
endSpacing?: number
|
|
171
|
-
barWidth?: number
|
|
172
|
-
sideWidth?: number
|
|
173
|
-
showLine?: boolean
|
|
174
|
-
lineData?:
|
|
175
|
-
lineData2?:
|
|
176
|
-
lineConfig?: lineConfigType
|
|
177
|
-
lineConfig2?: lineConfigType
|
|
178
|
-
lineBehindBars?: boolean
|
|
149
|
+
opacity?: number
|
|
150
|
+
isThreeD?: boolean
|
|
151
|
+
xAxisLength?: number
|
|
152
|
+
xAxisThickness?: number
|
|
153
|
+
xAxisColor?: ColorValue
|
|
154
|
+
yAxisThickness?: number
|
|
155
|
+
yAxisColor?: ColorValue
|
|
156
|
+
yAxisExtraHeight?: number
|
|
157
|
+
trimYAxisAtTop?: boolean
|
|
158
|
+
xAxisType?: RuleType
|
|
159
|
+
yAxisLabelContainerStyle?: any
|
|
160
|
+
horizontalRulesStyle?: any
|
|
161
|
+
yAxisTextStyle?: any
|
|
162
|
+
yAxisTextNumberOfLines?: number
|
|
163
|
+
xAxisTextNumberOfLines?: number
|
|
164
|
+
xAxisLabelsHeight?: number
|
|
165
|
+
xAxisLabelsVerticalShift?: number
|
|
166
|
+
yAxisLabelWidth?: number
|
|
167
|
+
hideYAxisText?: boolean
|
|
168
|
+
rotateYAxisTexts?: number
|
|
169
|
+
yAxisSide?: yAxisSides
|
|
170
|
+
yAxisOffset?: number
|
|
171
|
+
initialSpacing?: number
|
|
172
|
+
endSpacing?: number
|
|
173
|
+
barWidth?: number
|
|
174
|
+
sideWidth?: number
|
|
175
|
+
showLine?: boolean
|
|
176
|
+
lineData?: Array<lineDataItem | barDataItem | stackDataItem>
|
|
177
|
+
lineData2?: Array<lineDataItem | barDataItem | stackDataItem>
|
|
178
|
+
lineConfig?: lineConfigType
|
|
179
|
+
lineConfig2?: lineConfigType
|
|
180
|
+
lineBehindBars?: boolean
|
|
179
181
|
|
|
180
|
-
cappedBars?: boolean
|
|
181
|
-
capThickness?: number
|
|
182
|
-
capColor?: ColorValue
|
|
183
|
-
capRadius?: number
|
|
182
|
+
cappedBars?: boolean
|
|
183
|
+
capThickness?: number
|
|
184
|
+
capColor?: ColorValue
|
|
185
|
+
capRadius?: number
|
|
184
186
|
|
|
185
|
-
hideAxesAndRules?: boolean
|
|
186
|
-
hideRules?: boolean
|
|
187
|
-
rulesLength?: number
|
|
188
|
-
rulesColor?: ColorValue
|
|
189
|
-
rulesThickness?: number
|
|
190
|
-
rulesType?: RuleType
|
|
191
|
-
dashWidth?: number
|
|
192
|
-
dashGap?: number
|
|
193
|
-
rulesConfigArray?:
|
|
194
|
-
showReferenceLine1?: boolean
|
|
195
|
-
referenceLine1Config?: referenceConfigType
|
|
196
|
-
referenceLine1Position?: number
|
|
197
|
-
showReferenceLine2?: boolean
|
|
198
|
-
referenceLine2Config?: referenceConfigType
|
|
199
|
-
referenceLine2Position?: number
|
|
200
|
-
showReferenceLine3?: boolean
|
|
201
|
-
referenceLine3Config?: referenceConfigType
|
|
202
|
-
referenceLine3Position?: number
|
|
203
|
-
referenceLinesOverChartContent?: boolean
|
|
204
|
-
showVerticalLines?: boolean
|
|
205
|
-
verticalLinesThickness?: number
|
|
206
|
-
verticalLinesHeight?: number
|
|
207
|
-
verticalLinesColor?: ColorValue
|
|
208
|
-
verticalLinesStrokeDashArray?:
|
|
209
|
-
verticalLinesShift?: number
|
|
210
|
-
verticalLinesZIndex?: number
|
|
211
|
-
noOfVerticalLines?: number
|
|
212
|
-
verticalLinesSpacing?: number
|
|
187
|
+
hideAxesAndRules?: boolean
|
|
188
|
+
hideRules?: boolean
|
|
189
|
+
rulesLength?: number
|
|
190
|
+
rulesColor?: ColorValue
|
|
191
|
+
rulesThickness?: number
|
|
192
|
+
rulesType?: RuleType
|
|
193
|
+
dashWidth?: number
|
|
194
|
+
dashGap?: number
|
|
195
|
+
rulesConfigArray?: RulesConfig[]
|
|
196
|
+
showReferenceLine1?: boolean
|
|
197
|
+
referenceLine1Config?: referenceConfigType
|
|
198
|
+
referenceLine1Position?: number
|
|
199
|
+
showReferenceLine2?: boolean
|
|
200
|
+
referenceLine2Config?: referenceConfigType
|
|
201
|
+
referenceLine2Position?: number
|
|
202
|
+
showReferenceLine3?: boolean
|
|
203
|
+
referenceLine3Config?: referenceConfigType
|
|
204
|
+
referenceLine3Position?: number
|
|
205
|
+
referenceLinesOverChartContent?: boolean
|
|
206
|
+
showVerticalLines?: boolean
|
|
207
|
+
verticalLinesThickness?: number
|
|
208
|
+
verticalLinesHeight?: number
|
|
209
|
+
verticalLinesColor?: ColorValue
|
|
210
|
+
verticalLinesStrokeDashArray?: number[]
|
|
211
|
+
verticalLinesShift?: number
|
|
212
|
+
verticalLinesZIndex?: number
|
|
213
|
+
noOfVerticalLines?: number
|
|
214
|
+
verticalLinesSpacing?: number
|
|
213
215
|
|
|
214
|
-
showYAxisIndices?: boolean
|
|
215
|
-
showXAxisIndices?: boolean
|
|
216
|
-
yAxisIndicesHeight?: number
|
|
217
|
-
xAxisIndicesHeight?: number
|
|
218
|
-
yAxisIndicesWidth?: number
|
|
219
|
-
xAxisIndicesWidth?: number
|
|
220
|
-
xAxisIndicesColor?: ColorValue
|
|
221
|
-
yAxisIndicesColor?: ColorValue
|
|
216
|
+
showYAxisIndices?: boolean
|
|
217
|
+
showXAxisIndices?: boolean
|
|
218
|
+
yAxisIndicesHeight?: number
|
|
219
|
+
xAxisIndicesHeight?: number
|
|
220
|
+
yAxisIndicesWidth?: number
|
|
221
|
+
xAxisIndicesWidth?: number
|
|
222
|
+
xAxisIndicesColor?: ColorValue
|
|
223
|
+
yAxisIndicesColor?: ColorValue
|
|
222
224
|
|
|
223
|
-
showFractionalValues?: boolean
|
|
224
|
-
roundToDigits?: number
|
|
225
|
-
backgroundColor?: ColorValue
|
|
225
|
+
showFractionalValues?: boolean
|
|
226
|
+
roundToDigits?: number
|
|
227
|
+
backgroundColor?: ColorValue
|
|
226
228
|
|
|
227
|
-
disableScroll?: boolean
|
|
228
|
-
showScrollIndicator?: boolean
|
|
229
|
-
indicatorColor?:
|
|
230
|
-
roundedTop?: boolean
|
|
231
|
-
roundedBottom?: boolean
|
|
232
|
-
disablePress?: boolean
|
|
229
|
+
disableScroll?: boolean
|
|
230
|
+
showScrollIndicator?: boolean
|
|
231
|
+
indicatorColor?: 'black' | 'default' | 'white'
|
|
232
|
+
roundedTop?: boolean
|
|
233
|
+
roundedBottom?: boolean
|
|
234
|
+
disablePress?: boolean
|
|
233
235
|
|
|
234
|
-
frontColor?: ColorValue
|
|
235
|
-
color?: ColorValue
|
|
236
|
-
sideColor?: ColorValue
|
|
237
|
-
topColor?: ColorValue
|
|
238
|
-
gradientColor?: ColorValue
|
|
239
|
-
showGradient?: boolean
|
|
240
|
-
activeOpacity?: number
|
|
236
|
+
frontColor?: ColorValue
|
|
237
|
+
color?: ColorValue
|
|
238
|
+
sideColor?: ColorValue
|
|
239
|
+
topColor?: ColorValue
|
|
240
|
+
gradientColor?: ColorValue
|
|
241
|
+
showGradient?: boolean
|
|
242
|
+
activeOpacity?: number
|
|
241
243
|
|
|
242
|
-
horizontal?: boolean
|
|
243
|
-
rtl?: boolean
|
|
244
|
-
shiftX?: number
|
|
245
|
-
shiftY?: number
|
|
246
|
-
yAxisAtTop?: boolean
|
|
244
|
+
horizontal?: boolean
|
|
245
|
+
rtl?: boolean
|
|
246
|
+
shiftX?: number
|
|
247
|
+
shiftY?: number
|
|
248
|
+
yAxisAtTop?: boolean
|
|
247
249
|
|
|
248
|
-
intactTopLabel?: boolean
|
|
249
|
-
showValuesAsTopLabel?: boolean
|
|
250
|
-
topLabelContainerStyle?: any
|
|
251
|
-
topLabelTextStyle?: any
|
|
250
|
+
intactTopLabel?: boolean
|
|
251
|
+
showValuesAsTopLabel?: boolean
|
|
252
|
+
topLabelContainerStyle?: any
|
|
253
|
+
topLabelTextStyle?: any
|
|
252
254
|
|
|
253
|
-
horizSections?:
|
|
254
|
-
barBorderWidth?: number
|
|
255
|
-
barBorderColor?: ColorValue
|
|
256
|
-
barBorderRadius?: number
|
|
257
|
-
barBorderTopLeftRadius?: number
|
|
258
|
-
barBorderTopRightRadius?: number
|
|
259
|
-
barBorderBottomLeftRadius?: number
|
|
260
|
-
barBorderBottomRightRadius?: number
|
|
261
|
-
stackBorderRadius?: number
|
|
262
|
-
stackBorderTopLeftRadius?: number
|
|
263
|
-
stackBorderTopRightRadius?: number
|
|
264
|
-
stackBorderBottomLeftRadius?: number
|
|
265
|
-
stackBorderBottomRightRadius?: number
|
|
266
|
-
hideOrigin?: boolean
|
|
267
|
-
labelWidth?: number
|
|
268
|
-
yAxisLabelTexts?:
|
|
269
|
-
xAxisLabelTexts?:
|
|
270
|
-
xAxisLabelTextStyle?: any
|
|
271
|
-
yAxisLabelPrefix?:
|
|
272
|
-
yAxisLabelSuffix?:
|
|
273
|
-
autoShiftLabels?: boolean
|
|
274
|
-
scrollRef?: any
|
|
275
|
-
scrollToEnd?: boolean
|
|
276
|
-
scrollToIndex?: number
|
|
277
|
-
scrollAnimation?: boolean
|
|
278
|
-
scrollEventThrottle?: number
|
|
279
|
-
labelsExtraHeight?: number
|
|
280
|
-
barBackgroundPattern?: Function
|
|
281
|
-
patternId?:
|
|
282
|
-
barMarginBottom?: number
|
|
283
|
-
onPress?: Function
|
|
284
|
-
onLongPress?: Function
|
|
285
|
-
onPressOut?: Function
|
|
286
|
-
renderTooltip?: Function
|
|
287
|
-
leftShiftForTooltip?: number
|
|
288
|
-
leftShiftForLastIndexTooltip?: number
|
|
289
|
-
barStyle?: object
|
|
255
|
+
horizSections?: sectionType[]
|
|
256
|
+
barBorderWidth?: number
|
|
257
|
+
barBorderColor?: ColorValue
|
|
258
|
+
barBorderRadius?: number
|
|
259
|
+
barBorderTopLeftRadius?: number
|
|
260
|
+
barBorderTopRightRadius?: number
|
|
261
|
+
barBorderBottomLeftRadius?: number
|
|
262
|
+
barBorderBottomRightRadius?: number
|
|
263
|
+
stackBorderRadius?: number
|
|
264
|
+
stackBorderTopLeftRadius?: number
|
|
265
|
+
stackBorderTopRightRadius?: number
|
|
266
|
+
stackBorderBottomLeftRadius?: number
|
|
267
|
+
stackBorderBottomRightRadius?: number
|
|
268
|
+
hideOrigin?: boolean
|
|
269
|
+
labelWidth?: number
|
|
270
|
+
yAxisLabelTexts?: string[]
|
|
271
|
+
xAxisLabelTexts?: string[]
|
|
272
|
+
xAxisLabelTextStyle?: any
|
|
273
|
+
yAxisLabelPrefix?: string
|
|
274
|
+
yAxisLabelSuffix?: string
|
|
275
|
+
autoShiftLabels?: boolean
|
|
276
|
+
scrollRef?: any
|
|
277
|
+
scrollToEnd?: boolean
|
|
278
|
+
scrollToIndex?: number
|
|
279
|
+
scrollAnimation?: boolean
|
|
280
|
+
scrollEventThrottle?: number
|
|
281
|
+
labelsExtraHeight?: number
|
|
282
|
+
barBackgroundPattern?: Function
|
|
283
|
+
patternId?: string
|
|
284
|
+
barMarginBottom?: number
|
|
285
|
+
onPress?: Function
|
|
286
|
+
onLongPress?: Function
|
|
287
|
+
onPressOut?: Function
|
|
288
|
+
renderTooltip?: Function
|
|
289
|
+
leftShiftForTooltip?: number
|
|
290
|
+
leftShiftForLastIndexTooltip?: number
|
|
291
|
+
barStyle?: object
|
|
290
292
|
barInnerComponent?: (
|
|
291
293
|
item?: stackDataItem | barDataItem,
|
|
292
294
|
index?: number
|
|
293
|
-
) => ReactNode
|
|
295
|
+
) => ReactNode
|
|
294
296
|
|
|
295
|
-
secondaryData?:
|
|
296
|
-
secondaryYAxis?: secondaryYAxisType | boolean
|
|
297
|
-
pointerConfig?: Pointer
|
|
298
|
-
getPointerProps?: Function
|
|
299
|
-
formatYLabel?: (label: string) => string
|
|
297
|
+
secondaryData?: barDataItem[]
|
|
298
|
+
secondaryYAxis?: secondaryYAxisType | boolean
|
|
299
|
+
pointerConfig?: Pointer
|
|
300
|
+
getPointerProps?: Function
|
|
301
|
+
formatYLabel?: (label: string) => string
|
|
300
302
|
|
|
301
|
-
onEndReached?: () => void
|
|
302
|
-
onStartReached?: () => void
|
|
303
|
-
endReachedOffset?: number
|
|
304
|
-
onScroll?: Function
|
|
303
|
+
onEndReached?: () => void
|
|
304
|
+
onStartReached?: () => void
|
|
305
|
+
endReachedOffset?: number
|
|
306
|
+
onScroll?: Function
|
|
305
307
|
|
|
306
|
-
focusBarOnPress?: boolean
|
|
307
|
-
focusedBarConfig?: FocusedBarConfig
|
|
308
|
-
}
|
|
308
|
+
focusBarOnPress?: boolean
|
|
309
|
+
focusedBarConfig?: FocusedBarConfig
|
|
310
|
+
}
|
|
309
311
|
|
|
310
|
-
export
|
|
311
|
-
color?: ColorValue
|
|
312
|
-
sideColor?: ColorValue
|
|
313
|
-
topColor?: ColorValue
|
|
314
|
-
gradientColor?: ColorValue
|
|
315
|
-
width?: number
|
|
316
|
-
borderRadius?: number
|
|
317
|
-
roundedTop?: boolean
|
|
318
|
-
roundedBottom?: boolean
|
|
319
|
-
opacity?: number
|
|
320
|
-
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
321
|
-
}
|
|
312
|
+
export interface FocusedBarConfig {
|
|
313
|
+
color?: ColorValue
|
|
314
|
+
sideColor?: ColorValue
|
|
315
|
+
topColor?: ColorValue
|
|
316
|
+
gradientColor?: ColorValue
|
|
317
|
+
width?: number
|
|
318
|
+
borderRadius?: number
|
|
319
|
+
roundedTop?: boolean
|
|
320
|
+
roundedBottom?: boolean
|
|
321
|
+
opacity?: number
|
|
322
|
+
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
323
|
+
}
|
|
322
324
|
|
|
323
|
-
|
|
324
|
-
initialSpacing?: number
|
|
325
|
-
spacing?: number
|
|
326
|
-
curved?: boolean
|
|
327
|
-
curvature?: number
|
|
328
|
-
curveType?: CurveType
|
|
329
|
-
isAnimated?: boolean
|
|
330
|
-
animationDuration?: number
|
|
331
|
-
delay?: number
|
|
332
|
-
thickness?: number
|
|
333
|
-
color?: ColorValue |
|
|
334
|
-
hideDataPoints?: boolean
|
|
335
|
-
dataPointsShape?:
|
|
336
|
-
dataPointsWidth?: number
|
|
337
|
-
dataPointsHeight?: number
|
|
338
|
-
dataPointsColor?: ColorValue |
|
|
339
|
-
dataPointsRadius?: number
|
|
340
|
-
textColor?: ColorValue |
|
|
341
|
-
textFontSize?: number
|
|
342
|
-
textShiftX?: number
|
|
343
|
-
textShiftY?: number
|
|
344
|
-
shiftX?: number
|
|
345
|
-
shiftY?: number
|
|
346
|
-
startIndex?: number
|
|
347
|
-
endIndex?: number
|
|
348
|
-
showArrow?: boolean
|
|
349
|
-
arrowConfig?: arrowType
|
|
350
|
-
customDataPoint?: Function
|
|
351
|
-
isSecondary?: boolean
|
|
352
|
-
}
|
|
353
|
-
export
|
|
354
|
-
initialSpacing: number
|
|
355
|
-
curved: boolean
|
|
356
|
-
curvature: number
|
|
357
|
-
curveType: CurveType
|
|
358
|
-
isAnimated: boolean
|
|
359
|
-
animationDuration: number
|
|
360
|
-
delay: number
|
|
361
|
-
thickness: number
|
|
362
|
-
color: ColorValue |
|
|
363
|
-
hideDataPoints: boolean
|
|
364
|
-
dataPointsShape:
|
|
365
|
-
dataPointsWidth: number
|
|
366
|
-
dataPointsHeight: number
|
|
367
|
-
dataPointsColor: ColorValue |
|
|
368
|
-
dataPointsRadius: number
|
|
369
|
-
textColor: ColorValue |
|
|
370
|
-
textFontSize: number
|
|
371
|
-
textShiftX: number
|
|
372
|
-
textShiftY: number
|
|
373
|
-
shiftX: number
|
|
374
|
-
shiftY: number
|
|
375
|
-
startIndex: number
|
|
376
|
-
endIndex: number
|
|
377
|
-
showArrow: boolean
|
|
378
|
-
arrowConfig: arrowType
|
|
379
|
-
customDataPoint?: Function
|
|
380
|
-
isSecondary: boolean
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
length?: number
|
|
384
|
-
width?: number
|
|
385
|
-
strokeWidth?: number
|
|
386
|
-
strokeColor?: string
|
|
387
|
-
fillColor?: string
|
|
388
|
-
showArrowBase?: boolean
|
|
389
|
-
}
|
|
325
|
+
export interface lineConfigType {
|
|
326
|
+
initialSpacing?: number
|
|
327
|
+
spacing?: number
|
|
328
|
+
curved?: boolean
|
|
329
|
+
curvature?: number
|
|
330
|
+
curveType?: CurveType
|
|
331
|
+
isAnimated?: boolean
|
|
332
|
+
animationDuration?: number
|
|
333
|
+
delay?: number
|
|
334
|
+
thickness?: number
|
|
335
|
+
color?: ColorValue | string | any
|
|
336
|
+
hideDataPoints?: boolean
|
|
337
|
+
dataPointsShape?: string
|
|
338
|
+
dataPointsWidth?: number
|
|
339
|
+
dataPointsHeight?: number
|
|
340
|
+
dataPointsColor?: ColorValue | string | any
|
|
341
|
+
dataPointsRadius?: number
|
|
342
|
+
textColor?: ColorValue | string | any
|
|
343
|
+
textFontSize?: number
|
|
344
|
+
textShiftX?: number
|
|
345
|
+
textShiftY?: number
|
|
346
|
+
shiftX?: number
|
|
347
|
+
shiftY?: number
|
|
348
|
+
startIndex?: number
|
|
349
|
+
endIndex?: number
|
|
350
|
+
showArrow?: boolean
|
|
351
|
+
arrowConfig?: arrowType
|
|
352
|
+
customDataPoint?: Function
|
|
353
|
+
isSecondary?: boolean
|
|
354
|
+
}
|
|
355
|
+
export interface defaultLineConfigType {
|
|
356
|
+
initialSpacing: number
|
|
357
|
+
curved: boolean
|
|
358
|
+
curvature: number
|
|
359
|
+
curveType: CurveType
|
|
360
|
+
isAnimated: boolean
|
|
361
|
+
animationDuration: number
|
|
362
|
+
delay: number
|
|
363
|
+
thickness: number
|
|
364
|
+
color: ColorValue | string | any
|
|
365
|
+
hideDataPoints: boolean
|
|
366
|
+
dataPointsShape: string
|
|
367
|
+
dataPointsWidth: number
|
|
368
|
+
dataPointsHeight: number
|
|
369
|
+
dataPointsColor: ColorValue | string | any
|
|
370
|
+
dataPointsRadius: number
|
|
371
|
+
textColor: ColorValue | string | any
|
|
372
|
+
textFontSize: number
|
|
373
|
+
textShiftX: number
|
|
374
|
+
textShiftY: number
|
|
375
|
+
shiftX: number
|
|
376
|
+
shiftY: number
|
|
377
|
+
startIndex: number
|
|
378
|
+
endIndex: number
|
|
379
|
+
showArrow: boolean
|
|
380
|
+
arrowConfig: arrowType
|
|
381
|
+
customDataPoint?: Function
|
|
382
|
+
isSecondary: boolean
|
|
383
|
+
}
|
|
384
|
+
interface arrowType {
|
|
385
|
+
length?: number
|
|
386
|
+
width?: number
|
|
387
|
+
strokeWidth?: number
|
|
388
|
+
strokeColor?: string
|
|
389
|
+
fillColor?: string
|
|
390
|
+
showArrowBase?: boolean
|
|
391
|
+
}
|
|
390
392
|
|
|
391
|
-
|
|
392
|
-
value: string
|
|
393
|
-
}
|
|
393
|
+
interface sectionType {
|
|
394
|
+
value: string
|
|
395
|
+
}
|
|
394
396
|
|
|
395
|
-
export
|
|
396
|
-
value: number
|
|
397
|
-
onPress?: any
|
|
398
|
-
onLongPress?: any
|
|
399
|
-
onPressOut?: any
|
|
400
|
-
frontColor?: ColorValue
|
|
401
|
-
sideColor?: ColorValue
|
|
402
|
-
topColor?: ColorValue
|
|
403
|
-
showGradient?: boolean
|
|
404
|
-
gradientColor?: any
|
|
405
|
-
label?:
|
|
406
|
-
barWidth?: number
|
|
407
|
-
sideWidth?: number
|
|
408
|
-
labelTextStyle?: any
|
|
409
|
-
topLabelComponent?: Function
|
|
410
|
-
topLabelContainerStyle?: any
|
|
411
|
-
disablePress?: any
|
|
412
|
-
capThickness?: number
|
|
413
|
-
capColor?: ColorValue
|
|
414
|
-
capRadius?: number
|
|
415
|
-
labelComponent?: Function
|
|
416
|
-
barBorderRadius?: number
|
|
417
|
-
barBorderTopLeftRadius?: number
|
|
418
|
-
barBorderTopRightRadius?: number
|
|
419
|
-
barBorderBottomLeftRadius?: number
|
|
420
|
-
barBorderBottomRightRadius?: number
|
|
421
|
-
topLabelComponentHeight?: number
|
|
422
|
-
spacing?: number
|
|
423
|
-
labelWidth?: number
|
|
424
|
-
barBackgroundPattern?: Function
|
|
425
|
-
patternId?:
|
|
426
|
-
barMarginBottom?: number
|
|
427
|
-
leftShiftForTooltip?: number
|
|
428
|
-
barStyle?: object
|
|
429
|
-
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
430
|
-
showXAxisIndex?: boolean
|
|
431
|
-
}
|
|
397
|
+
export interface barDataItem {
|
|
398
|
+
value: number
|
|
399
|
+
onPress?: any
|
|
400
|
+
onLongPress?: any
|
|
401
|
+
onPressOut?: any
|
|
402
|
+
frontColor?: ColorValue
|
|
403
|
+
sideColor?: ColorValue
|
|
404
|
+
topColor?: ColorValue
|
|
405
|
+
showGradient?: boolean
|
|
406
|
+
gradientColor?: any
|
|
407
|
+
label?: string
|
|
408
|
+
barWidth?: number
|
|
409
|
+
sideWidth?: number
|
|
410
|
+
labelTextStyle?: any
|
|
411
|
+
topLabelComponent?: Function
|
|
412
|
+
topLabelContainerStyle?: any
|
|
413
|
+
disablePress?: any
|
|
414
|
+
capThickness?: number
|
|
415
|
+
capColor?: ColorValue
|
|
416
|
+
capRadius?: number
|
|
417
|
+
labelComponent?: Function
|
|
418
|
+
barBorderRadius?: number
|
|
419
|
+
barBorderTopLeftRadius?: number
|
|
420
|
+
barBorderTopRightRadius?: number
|
|
421
|
+
barBorderBottomLeftRadius?: number
|
|
422
|
+
barBorderBottomRightRadius?: number
|
|
423
|
+
topLabelComponentHeight?: number
|
|
424
|
+
spacing?: number
|
|
425
|
+
labelWidth?: number
|
|
426
|
+
barBackgroundPattern?: Function
|
|
427
|
+
patternId?: string
|
|
428
|
+
barMarginBottom?: number
|
|
429
|
+
leftShiftForTooltip?: number
|
|
430
|
+
barStyle?: object
|
|
431
|
+
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
432
|
+
showXAxisIndex?: boolean
|
|
433
|
+
}
|
|
432
434
|
|
|
433
|
-
export
|
|
434
|
-
item: barDataItem
|
|
435
|
-
index: number
|
|
436
|
-
height: number
|
|
437
|
-
minHeight: number
|
|
438
|
-
opacity?: number
|
|
439
|
-
animationDuration: number
|
|
440
|
-
roundedTop: boolean
|
|
441
|
-
roundedBottom: boolean
|
|
442
|
-
barWidth: number
|
|
443
|
-
gradientColor: ColorValue
|
|
444
|
-
frontColor: ColorValue
|
|
445
|
-
noGradient?: boolean
|
|
446
|
-
noAnimation?: boolean
|
|
447
|
-
cappedBars?: boolean
|
|
448
|
-
capThickness?: number
|
|
449
|
-
capColor?: ColorValue
|
|
450
|
-
capRadius?: number
|
|
451
|
-
horizontal: boolean
|
|
452
|
-
intactTopLabel: boolean
|
|
453
|
-
showValuesAsTopLabel: boolean
|
|
454
|
-
topLabelContainerStyle?: any
|
|
455
|
-
topLabelTextStyle?: any
|
|
456
|
-
barBorderWidth?: number
|
|
457
|
-
barBorderColor: ColorValue
|
|
458
|
-
barBorderRadius?: number
|
|
459
|
-
barBorderTopLeftRadius?: number
|
|
460
|
-
barBorderTopRightRadius?: number
|
|
461
|
-
barBorderBottomLeftRadius?: number
|
|
462
|
-
barBorderBottomRightRadius?: number
|
|
463
|
-
containerHeight?: number
|
|
464
|
-
maxValue?: number
|
|
465
|
-
barBackgroundPattern?: Function
|
|
466
|
-
patternId?:
|
|
467
|
-
barMarginBottom?: number
|
|
468
|
-
barStyle?: object
|
|
469
|
-
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
470
|
-
commonStyleForBar?: ViewStyle[]
|
|
471
|
-
barStyleWithBackground?: ViewStyle[]
|
|
472
|
-
}
|
|
435
|
+
export interface Animated2DWithGradientPropsType {
|
|
436
|
+
item: barDataItem
|
|
437
|
+
index: number
|
|
438
|
+
height: number
|
|
439
|
+
minHeight: number
|
|
440
|
+
opacity?: number
|
|
441
|
+
animationDuration: number
|
|
442
|
+
roundedTop: boolean
|
|
443
|
+
roundedBottom: boolean
|
|
444
|
+
barWidth: number
|
|
445
|
+
gradientColor: ColorValue
|
|
446
|
+
frontColor: ColorValue
|
|
447
|
+
noGradient?: boolean
|
|
448
|
+
noAnimation?: boolean
|
|
449
|
+
cappedBars?: boolean
|
|
450
|
+
capThickness?: number
|
|
451
|
+
capColor?: ColorValue
|
|
452
|
+
capRadius?: number
|
|
453
|
+
horizontal: boolean
|
|
454
|
+
intactTopLabel: boolean
|
|
455
|
+
showValuesAsTopLabel: boolean
|
|
456
|
+
topLabelContainerStyle?: any
|
|
457
|
+
topLabelTextStyle?: any
|
|
458
|
+
barBorderWidth?: number
|
|
459
|
+
barBorderColor: ColorValue
|
|
460
|
+
barBorderRadius?: number
|
|
461
|
+
barBorderTopLeftRadius?: number
|
|
462
|
+
barBorderTopRightRadius?: number
|
|
463
|
+
barBorderBottomLeftRadius?: number
|
|
464
|
+
barBorderBottomRightRadius?: number
|
|
465
|
+
containerHeight?: number
|
|
466
|
+
maxValue?: number
|
|
467
|
+
barBackgroundPattern?: Function
|
|
468
|
+
patternId?: string
|
|
469
|
+
barMarginBottom?: number
|
|
470
|
+
barStyle?: object
|
|
471
|
+
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
472
|
+
commonStyleForBar?: ViewStyle[]
|
|
473
|
+
barStyleWithBackground?: ViewStyle[]
|
|
474
|
+
}
|
|
473
475
|
|
|
474
|
-
export
|
|
475
|
-
style?: any
|
|
476
|
-
width?: number
|
|
477
|
-
height?: number
|
|
478
|
-
minHeight: number
|
|
479
|
-
color?: ColorValue
|
|
480
|
-
showGradient?: boolean
|
|
481
|
-
gradientColor?: any
|
|
482
|
-
frontColor?: ColorValue
|
|
483
|
-
sideColor?: ColorValue
|
|
484
|
-
topColor?: ColorValue
|
|
485
|
-
topLabelComponent?: Component
|
|
486
|
-
topLabelContainerStyle?: any
|
|
487
|
-
topLabelTextStyle?: any
|
|
488
|
-
opacity?: number
|
|
489
|
-
side?:
|
|
490
|
-
labelTextStyle?: any
|
|
476
|
+
export interface RenderBarsPropsType {
|
|
477
|
+
style?: any
|
|
478
|
+
width?: number
|
|
479
|
+
height?: number
|
|
480
|
+
minHeight: number
|
|
481
|
+
color?: ColorValue
|
|
482
|
+
showGradient?: boolean
|
|
483
|
+
gradientColor?: any
|
|
484
|
+
frontColor?: ColorValue
|
|
485
|
+
sideColor?: ColorValue
|
|
486
|
+
topColor?: ColorValue
|
|
487
|
+
topLabelComponent?: Component
|
|
488
|
+
topLabelContainerStyle?: any
|
|
489
|
+
topLabelTextStyle?: any
|
|
490
|
+
opacity?: number
|
|
491
|
+
side?: string
|
|
492
|
+
labelTextStyle?: any
|
|
491
493
|
|
|
492
|
-
item: barDataItem
|
|
493
|
-
index: number
|
|
494
|
-
label:
|
|
495
|
-
containerHeight?: number
|
|
496
|
-
maxValue: number
|
|
497
|
-
spacing: number
|
|
498
|
-
propSpacing?: number
|
|
499
|
-
data?: any
|
|
500
|
-
barWidth?: number
|
|
501
|
-
sideWidth?: number
|
|
502
|
-
labelWidth?: number
|
|
494
|
+
item: barDataItem
|
|
495
|
+
index: number
|
|
496
|
+
label: string
|
|
497
|
+
containerHeight?: number
|
|
498
|
+
maxValue: number
|
|
499
|
+
spacing: number
|
|
500
|
+
propSpacing?: number
|
|
501
|
+
data?: any
|
|
502
|
+
barWidth?: number
|
|
503
|
+
sideWidth?: number
|
|
504
|
+
labelWidth?: number
|
|
503
505
|
|
|
504
|
-
isThreeD?: boolean
|
|
505
|
-
isAnimated?: boolean
|
|
506
|
-
rotateLabel?: boolean
|
|
507
|
-
animatedHeight?: any
|
|
508
|
-
appearingOpacity?: any
|
|
509
|
-
animationDuration?: number
|
|
510
|
-
roundedTop?: boolean
|
|
511
|
-
roundedBottom?: boolean
|
|
512
|
-
disablePress?: boolean
|
|
513
|
-
activeOpacity?: number
|
|
514
|
-
cappedBars?: boolean
|
|
515
|
-
capThickness?: number
|
|
516
|
-
capColor?: ColorValue
|
|
517
|
-
capRadius?: number
|
|
518
|
-
showXAxisIndices: boolean
|
|
519
|
-
xAxisIndicesHeight: number
|
|
520
|
-
xAxisIndicesWidth: number
|
|
521
|
-
xAxisIndicesColor: ColorValue
|
|
522
|
-
horizontal: boolean
|
|
523
|
-
rtl: boolean
|
|
524
|
-
intactTopLabel: boolean
|
|
525
|
-
showValuesAsTopLabel?: boolean
|
|
526
|
-
barBorderWidth?: number
|
|
527
|
-
barBorderColor: ColorValue
|
|
528
|
-
barBorderRadius?: number
|
|
529
|
-
barBorderTopLeftRadius?: number
|
|
530
|
-
barBorderTopRightRadius?: number
|
|
531
|
-
barBorderBottomLeftRadius?: number
|
|
532
|
-
barBorderBottomRightRadius?: number
|
|
533
|
-
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
534
|
-
autoShiftLabels?: boolean
|
|
535
|
-
barBackgroundPattern?: Function
|
|
536
|
-
patternId?:
|
|
537
|
-
barMarginBottom?: number
|
|
538
|
-
onPress?: Function
|
|
539
|
-
onLongPress?: Function
|
|
540
|
-
onPressOut?: Function
|
|
541
|
-
xAxisTextNumberOfLines: number
|
|
542
|
-
xAxisLabelsHeight?: number
|
|
543
|
-
xAxisLabelsVerticalShift: number
|
|
544
|
-
renderTooltip: Function | undefined
|
|
545
|
-
leftShiftForTooltip?: number
|
|
546
|
-
leftShiftForLastIndexTooltip: number
|
|
547
|
-
initialSpacing: number
|
|
548
|
-
selectedIndex: number
|
|
549
|
-
setSelectedIndex: Function
|
|
550
|
-
barStyle?: object
|
|
551
|
-
xAxisThickness?: number
|
|
552
|
-
pointerConfig?: Pointer
|
|
553
|
-
focusBarOnPress?: boolean
|
|
554
|
-
noOfSectionsBelowXAxis?: number
|
|
555
|
-
}
|
|
506
|
+
isThreeD?: boolean
|
|
507
|
+
isAnimated?: boolean
|
|
508
|
+
rotateLabel?: boolean
|
|
509
|
+
animatedHeight?: any
|
|
510
|
+
appearingOpacity?: any
|
|
511
|
+
animationDuration?: number
|
|
512
|
+
roundedTop?: boolean
|
|
513
|
+
roundedBottom?: boolean
|
|
514
|
+
disablePress?: boolean
|
|
515
|
+
activeOpacity?: number
|
|
516
|
+
cappedBars?: boolean
|
|
517
|
+
capThickness?: number
|
|
518
|
+
capColor?: ColorValue
|
|
519
|
+
capRadius?: number
|
|
520
|
+
showXAxisIndices: boolean
|
|
521
|
+
xAxisIndicesHeight: number
|
|
522
|
+
xAxisIndicesWidth: number
|
|
523
|
+
xAxisIndicesColor: ColorValue
|
|
524
|
+
horizontal: boolean
|
|
525
|
+
rtl: boolean
|
|
526
|
+
intactTopLabel: boolean
|
|
527
|
+
showValuesAsTopLabel?: boolean
|
|
528
|
+
barBorderWidth?: number
|
|
529
|
+
barBorderColor: ColorValue
|
|
530
|
+
barBorderRadius?: number
|
|
531
|
+
barBorderTopLeftRadius?: number
|
|
532
|
+
barBorderTopRightRadius?: number
|
|
533
|
+
barBorderBottomLeftRadius?: number
|
|
534
|
+
barBorderBottomRightRadius?: number
|
|
535
|
+
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
536
|
+
autoShiftLabels?: boolean
|
|
537
|
+
barBackgroundPattern?: Function
|
|
538
|
+
patternId?: string
|
|
539
|
+
barMarginBottom?: number
|
|
540
|
+
onPress?: Function
|
|
541
|
+
onLongPress?: Function
|
|
542
|
+
onPressOut?: Function
|
|
543
|
+
xAxisTextNumberOfLines: number
|
|
544
|
+
xAxisLabelsHeight?: number
|
|
545
|
+
xAxisLabelsVerticalShift: number
|
|
546
|
+
renderTooltip: Function | undefined
|
|
547
|
+
leftShiftForTooltip?: number
|
|
548
|
+
leftShiftForLastIndexTooltip: number
|
|
549
|
+
initialSpacing: number
|
|
550
|
+
selectedIndex: number
|
|
551
|
+
setSelectedIndex: Function
|
|
552
|
+
barStyle?: object
|
|
553
|
+
xAxisThickness?: number
|
|
554
|
+
pointerConfig?: Pointer
|
|
555
|
+
focusBarOnPress?: boolean
|
|
556
|
+
noOfSectionsBelowXAxis?: number
|
|
557
|
+
}
|
|
556
558
|
|
|
557
|
-
export
|
|
558
|
-
style: any
|
|
559
|
-
width: number
|
|
560
|
-
color: ColorValue
|
|
561
|
-
}
|
|
559
|
+
export interface trianglePropTypes {
|
|
560
|
+
style: any
|
|
561
|
+
width: number
|
|
562
|
+
color: ColorValue
|
|
563
|
+
}
|
|
562
564
|
|
|
563
|
-
export
|
|
564
|
-
isAnimated?: boolean
|
|
565
|
-
animationDuration: number
|
|
566
|
-
barWidth: number
|
|
567
|
-
sideWidth: number
|
|
568
|
-
height: number
|
|
569
|
-
showGradient: boolean
|
|
570
|
-
gradientColor: any
|
|
571
|
-
frontColor: ColorValue
|
|
572
|
-
sideColor: ColorValue
|
|
573
|
-
topColor: ColorValue
|
|
574
|
-
opacity: number
|
|
575
|
-
side:
|
|
576
|
-
horizontal: boolean
|
|
577
|
-
intactTopLabel: boolean
|
|
578
|
-
showValuesAsTopLabel: boolean
|
|
579
|
-
topLabelContainerStyle?: any
|
|
580
|
-
topLabelTextStyle?: any
|
|
581
|
-
barBackgroundPattern?: Function
|
|
582
|
-
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
583
|
-
patternId?:
|
|
584
|
-
barStyle?: object
|
|
585
|
-
item: barDataItem
|
|
586
|
-
index: number
|
|
587
|
-
selectedIndex: number
|
|
588
|
-
focusBarOnPress?: boolean
|
|
589
|
-
focusedBarConfig?: FocusedBarConfig
|
|
590
|
-
}
|
|
565
|
+
export interface animatedBarPropTypes {
|
|
566
|
+
isAnimated?: boolean
|
|
567
|
+
animationDuration: number
|
|
568
|
+
barWidth: number
|
|
569
|
+
sideWidth: number
|
|
570
|
+
height: number
|
|
571
|
+
showGradient: boolean
|
|
572
|
+
gradientColor: any
|
|
573
|
+
frontColor: ColorValue
|
|
574
|
+
sideColor: ColorValue
|
|
575
|
+
topColor: ColorValue
|
|
576
|
+
opacity: number
|
|
577
|
+
side: string
|
|
578
|
+
horizontal: boolean
|
|
579
|
+
intactTopLabel: boolean
|
|
580
|
+
showValuesAsTopLabel: boolean
|
|
581
|
+
topLabelContainerStyle?: any
|
|
582
|
+
topLabelTextStyle?: any
|
|
583
|
+
barBackgroundPattern?: Function
|
|
584
|
+
barInnerComponent?: (item?: barDataItem, index?: number) => ReactNode
|
|
585
|
+
patternId?: string
|
|
586
|
+
barStyle?: object
|
|
587
|
+
item: barDataItem
|
|
588
|
+
index: number
|
|
589
|
+
selectedIndex: number
|
|
590
|
+
focusBarOnPress?: boolean
|
|
591
|
+
focusedBarConfig?: FocusedBarConfig
|
|
592
|
+
}
|
|
591
593
|
|
|
592
|
-
export
|
|
593
|
-
barBackgroundPattern: Function
|
|
594
|
-
barInnerComponent: (item?: barDataItem, index?: number) => ReactNode
|
|
595
|
-
patternId:
|
|
596
|
-
barWidth: number
|
|
597
|
-
barStyle: object
|
|
598
|
-
item: barDataItem
|
|
599
|
-
index: number
|
|
594
|
+
export interface CommonPropsFor2Dand3DbarsType {
|
|
595
|
+
barBackgroundPattern: Function
|
|
596
|
+
barInnerComponent: (item?: barDataItem, index?: number) => ReactNode
|
|
597
|
+
patternId: string
|
|
598
|
+
barWidth: number
|
|
599
|
+
barStyle: object
|
|
600
|
+
item: barDataItem
|
|
601
|
+
index: number
|
|
600
602
|
|
|
601
|
-
frontColor: ColorValue
|
|
602
|
-
showGradient: boolean
|
|
603
|
-
gradientColor: ColorValue
|
|
604
|
-
opacity: number
|
|
605
|
-
height: number
|
|
606
|
-
intactTopLabel: boolean
|
|
607
|
-
showValuesAsTopLabel: boolean
|
|
608
|
-
topLabelContainerStyle: any
|
|
609
|
-
topLabelTextStyle: any
|
|
610
|
-
}
|
|
603
|
+
frontColor: ColorValue
|
|
604
|
+
showGradient: boolean
|
|
605
|
+
gradientColor: ColorValue
|
|
606
|
+
opacity: number
|
|
607
|
+
height: number
|
|
608
|
+
intactTopLabel: boolean
|
|
609
|
+
showValuesAsTopLabel: boolean
|
|
610
|
+
topLabelContainerStyle: any
|
|
611
|
+
topLabelTextStyle: any
|
|
612
|
+
}
|