// BarGraph/index.js | |
... | |
let width = Dimensions.get('screen').width; | |
let xAxisHeight = 30; | |
let yAxisHeight = 325; | |
return ( | |
<View style={styles.main}> | |
<YAxis | |
height={yAxisHeight} | |
width={width} /> | |
<Columns /> | |
<XAxis | |
width={width - 10} | |
height={xAxisHeight} /> | |
... |