container = {
const svg = html `<svg width="900" height="500" />`
d3.select(svg)
.selectAll('path')
.data( data )
.join('path')
.attr('class', 'big-mac-line')
.attr('d', line)
.style('stroke', d => colors(d[0].name))
.style('stroke-width', 2)
.style('fill', 'transparent')
d3.select(svg)
.selectAll('text.label')
.data( data )
.join('text')
.attr('class', 'label')
.attr('x', width - margin.right + 5)
.attr('y', d => yScale( d[d.length - 1].price ) + (d[0].name === 'Sweden' ? -10 : 0))
.attr('dy', '0.35em')
.style('fill', d => colors(d[0].name))
.style('font-family', 'sans-serif')
.style('font-size', 12)
.text(d => d[0].name)
d3.select(svg)
.append('g')
.attr('class', 'x-axis')
.attr('transform', `translate(0,${ height - margin.bottom })`)
.call(xAxis)
d3.select(svg)
.append('g')
.attr('class', 'y-axis')
.attr('transform', `translate(${ margin.left },0)`)
.call(yAxis)
.selectAll('.domain').remove()
return svg
}