{
const svg = d3.create('svg')
.attr('viewBox', [0, -10, w, h])
svg.append('g')
.selectAll('.hexagon')
.data(hexbin(colours))
.enter().append('path')
.attr('class', 'hexagon')
.attr('transform', d => `translate(${d.x}, ${d.y})`)
.attr('d', hexbin.hexagon())
.attr('stroke', '#000')
.attr('stroke-opacity', '0.5')
.attr('stroke-width', '1px')
.style('fill', d => d[0].rgb)
return svg.node()
}