-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-native-chart.flow.js
55 lines (51 loc) · 1.36 KB
/
react-native-chart.flow.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
declare type Chart = {
// Shared properties between most types
data: Array<Array<number>>,
type: 'line' | 'bar' | 'pie',
highlightColor?: number | string,
highlightIndices?: Array<number>,
onDataPointPress?: Function,
axisColor?: number | string,
axisLabelColor?: number | string,
axisLineWidth?: number,
gridColor?: number | string,
gridLineWidth?: number,
hideHorizontalGridLines?: boolean,
hideVerticalGridLines?: boolean,
showAxis?: boolean,
showGrid?: boolean,
showXAxisLabels?: boolean,
showYAxisLabels?: boolean,
style?: any,
tightBounds?: boolean,
verticalGridStep?: number,
xAxisHeight?: number,
yAxisTransform?: Function,
yAxisWidth?: number,
// Bar chart props
color?: number | string,
cornerRadius?: number,
widthPercent?: number,
// Line/multi-line chart props
fillColor?: number | string,
dataPointColor?: number | string,
dataPointFillColor?: number | string,
dataPointRadius?: number,
lineWidth?: number,
showDataPoint?: boolean,
// Pie chart props
sliceColors?: Array<number | string>,
// TODO
highlightRadius?: number,
pieCenterRatio?: number,
animationDuration?: number,
axisTitleColor?: number | string,
axisTitleFontSize?: number,
chartFontSize?: number,
chartTitle?: string,
chartTitleColor?: number | string,
labelFontSize?: number,
xAxisTitle?: string,
yAxisTitle?: string,
fillGradient?: Array<number | string>,
};