chart = {
const svg = d3.create('svg')
.attr('width', width)
.attr('height', height)
const container = svg.append('g')
.attr('class', 'container')
.attr('transform', `translate(${ width/2 },${ height/2 })`)
.style('font-size', 10)
.style('font-family', 'sans-serif')
container
.selectAll('path')
.data( AnnArbor )
.join('path')
.style('fill', d => color(d.avg))
.style('stroke', d => color(d.avg))
.attr('d', arc)
container.append('g')
.call(xAxis)
container.append('g')
.call(yAxis)
return svg.node()
}