import { select } from 'd3'; /** * build the elements that will be contained within our main SVG */ const buildAxes = () => { select('.line-chart') .append('g') .attr('class', 'line-chart-yaxis'); select('.line-chart') .append('g') .attr('class', 'line-chart-xaxis') }; const buildLine = () => { select('.line-chart') .append('path') .attr('class', 'line-chart-line') };