// App.js
...
export default function App() {
const color = '#FFC77D';
const data = [
{"duration": 4, column: 0},
{"duration": 7, column: 1},
{"duration": 6, column: 2},
{"duration": 7, column: 3},
{"duration": 8, column: 4},
{"duration": 5, column: 5},
{"duration": 8, column: 6},
];
return (
...
<BarGraph
color={color}
data={data} />
...
view raw App.js hosted with ❤ by GitHub