const infections = data.map(d => d.Confirmed);
const svg = d3.select('svg');
svg.selectAll('rect')
.data(infections)
.enter()
.append('rect')
.attr('x', (d, i) => i * 10)
.attr('y', d => 500 - d)
.attr('width', 10)
.attr('height', d => d)
.attr('fill', 'steelblue');