react-native-mp-android-chart
Version:
React Native wrapper around MPAndroidChart chart library
38 lines (31 loc) • 820 B
JavaScript
import {PropTypes} from 'react';
import {
View
} from 'react-native';
import {axisIface} from './ChartBase';
const yAxisIface = {
...axisIface,
axisMaxValue: PropTypes.number,
axisMinValue: PropTypes.number,
inverted: PropTypes.bool,
spaceTop: PropTypes.number,
spaceBottom: PropTypes.number,
showOnlyMinMax: PropTypes.bool,
labelCount: PropTypes.number,
labelCountForce: PropTypes.bool,
position: PropTypes.string,
granularity: PropTypes.number,
granularityEnabled: PropTypes.bool,
// formatting
valueFormatter: PropTypes.oneOfType([
PropTypes.oneOf(['largeValue', 'percent']),
PropTypes.string
]),
// zero line
zeroLine: PropTypes.shape({
enabled: PropTypes.bool,
lineWidth: PropTypes.number,
lineColor: PropTypes.string
})
};
export default yAxisIface;