react-native-mp-android-chart
Version:
React Native wrapper around MPAndroidChart chart library
46 lines (37 loc) • 1.16 kB
JavaScript
import {PropTypes} from 'react';
import {
View
} from 'react-native';
import ChartBase from './ChartBase';
import {yAxisIface} from './YAxisIface';
const iface = {
propTypes: {
...ChartBase.propTypes,
drawGridBackground: PropTypes.bool,
gridBackgroundColor: PropTypes.string,
drawBorders: PropTypes.bool,
borderColor: PropTypes.string,
borderWidth: PropTypes.number,
maxVisibleValueCount: PropTypes.number,
autoScaleMinMaxEnabled: PropTypes.bool,
keepPositionOnRotation: PropTypes.bool,
scaleEnabled: PropTypes.bool,
scaleXEnabled: PropTypes.bool,
scaleYEnabled: PropTypes.bool,
dragEnabled: PropTypes.bool,
pinchZoom: PropTypes.bool,
doubleTapToZoomEnabled: PropTypes.bool,
yAxis: PropTypes.shape({
left: PropTypes.shape(yAxisIface),
right: PropTypes.shape(yAxisIface)
}),
zoom: PropTypes.shape({
scaleX: PropTypes.number.isRequired,
scaleY: PropTypes.number.isRequired,
xValue: PropTypes.number.isRequired,
yValue: PropTypes.number.isRequired,
axisDependency: PropTypes.oneOf(['LEFT', 'RIGHT'])
}),
}
};
export default iface;