// BarGraph/index.js
import React from 'react';
import { StyleSheet, Text, View, Dimensions } from 'react-native';
import XAxis from './xAxis';
import YAxis from '/yAxis';
import Columns from './Columns';
export default function BarGraph() {
let width = Dimensions.get('screen').width;
let xAxisHeight = 30;
return (
<View style={styles.main}>
<YAxis />
<Columns />
<XAxis
width={width - 10}
height={xAxisHeight} />
</View>
);
}
const styles = StyleSheet.create({
main: {
marginVertical: 25,
marginHorizontal: 0,
}
});
view raw index.js hosted with ❤ by GitHub