forked from hongyin163/react-native-chart-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BarChart.js
65 lines (60 loc) · 1.99 KB
/
BarChart.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
56
57
58
59
60
61
62
63
64
65
import React, {Component, PropTypes} from 'react';
import {requireNativeComponent, View} from 'react-native';
class BarChart extends Component {
constructor(props) {
super(props);
}
render() {
return (
<MPBarChart {...this.props}/>
);
}
}
BarChart.propTypes = {
...View.propTypes,
data:PropTypes.object,
touchEnabled:PropTypes.bool,
dragEnabled:PropTypes.bool,
scaleEnabled:PropTypes.bool,
scaleXEnabled:PropTypes.bool,
scaleYEnabled:PropTypes.bool,
pinchZoom:PropTypes.bool,
doubleTapToZoomEnabled:PropTypes.bool,
highlightPerDragEnabled:PropTypes.bool,
highlightPerTapEnabled:PropTypes.bool,
dragDecelerationEnabled:PropTypes.bool,
dragDecelerationFrictionCoef:PropTypes.number,
maxVisibleValueCount:PropTypes.number,
limitLine:PropTypes.object,
description:PropTypes.string,
backgroundColor:PropTypes.string,
drawGridBackground:PropTypes.bool,
gridBackgroundColor:PropTypes.string,
visibleXRange:PropTypes.array,
borderColor:PropTypes.string,
borderWidth:PropTypes.number,
xAxis:PropTypes.object,
yAxisLeft:PropTypes.object,
yAxisRight:PropTypes.object,
yAxis:PropTypes.object,
fitScreen:PropTypes.bool,
chartPadding:PropTypes.string,
legend:PropTypes.object,
scaleX: PropTypes.number,
scaleY: PropTypes.number,
translateX: PropTypes.number,
translateY: PropTypes.number,
rotation: PropTypes.number,
renderToHardwareTextureAndroid: React.PropTypes.bool,
onLayout: React.PropTypes.bool,
accessibilityLiveRegion: React.PropTypes.string,
accessibilityComponentType: React.PropTypes.string,
importantForAccessibility: React.PropTypes.string,
accessibilityLabel: React.PropTypes.string,
testID: React.PropTypes.string,
viewCenter: React.PropTypes.array,
zoomTo: PropTypes.object,
extraOffsets: PropTypes.string
}
var MPBarChart = requireNativeComponent('MPBarChart', BarChart);
export default BarChart;