import AchoViz from '../../src'; import { data } from './data'; const opts = { height: 400, width: 460, xField: 'country', yField: 'value', useToolTip: true }; const bar = new AchoViz.BarChart({ ...opts, elementId: '#barchart', data }); bar.setMargin({ top: 30, right: 30, bottom: 10, left: 60 }); bar.render();