renderChart = (target) => {
target.append('g')
.call(xAxis);
target.append('g')
.call(yAxis);
target.selectAll('circle')
.data(data)
.enter().append('circle')
.attr('r', 3.5)
.attr('cx', d => xScale(d.x))
.attr('cy', d => yScale(d.y));
target.append('path')
.classed('regressionLine', true)
.datum(regressionPoints)
.attr('d', line);
}