chart = fc
.chartCartesian(d3.scaleLog(), d3.scaleLinear())
.xDomain(fc.extentLinear().accessors([d => d.income])(fd))
.yDomain(fc.extentLinear().accessors([d => d.lifeExpectancy])(fd))
.chartLabel('The Wealth & Health of Nations')
.xLabel('Income (dollars)')
.yLabel('Life expectancy (years)')
.xTicks(2, d3.format(',d'))
.yOrient('left')
.svgPlotArea(pointSeries)
.decorate(selection => {
selection
.enter()
.append('d3fc-svg')
.attr('class', 'legend');
selection
.select('.legend')
.select('svg')
.call(legend);
});