Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created April 18, 2020 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/62cc2d1744629347881556e283b5c0c7 to your computer and use it in GitHub Desktop.
Save marshallmurphy/62cc2d1744629347881556e283b5c0c7 to your computer and use it in GitHub Desktop.
// 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} />
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment