import { bar } from 'vizart-basic'; import 'vizart-basic/dist/vizart-basic.css'; const options = { chart: { height: 420, margin: { left: 30, right: 30, top: 10, bottom: 30 } }, data: { x: { name: 'Director', type: 'string', accessor: 'Director'}, y: [{ name: 'Total', type: 'number', accessor: 'Total', yAxis: 0}], }, }; const chart = bar('#chart', options); d3.csv('./data/movies.csv', function(err, res){ chart.render(res); });