import { line } 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: { accessor: 'age', type: 'number', name: 'Age' }, y: [ { accessor: 'income', type: 'number', name: 'Monthly Income' } ] }, }; const fakeData = [ { age: 19, income: 9 } ] const chart = line('#chart', options); chart.render(fakeData);