import { scatter } 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' } ] r: { accessor: 'companyYears', type: 'number', name: 'Years at Company' } //optional }, }; const fakeData = [ { age: 19, income: 9, companyYears:5 } ] const _chart = scatter('#chart', options); _chart.render(fakeData);