bars = {
const container = html `<svg width="2000" height="950"/>`
const svg = d3.select(container)
svg.append('g')
.attr('class','bars')
.selectAll('rect')
.data (data)
.join('rect')
.attr('class','bar')
.attr('x', d => xScale(d.ntaname))
.attr('y', d => yScale(d.bblviolations))
.attr('width', xScale.bandwidth())
.attr('height', d=> yScale(0) - yScale(d.bblviolations))
.style('fill', 'black')
.style('stroke','white')
svg.append('g')
.attr('class', 'x-axis')
.attr('transform',`translate(0,${ height - margin.bottom })`)
.call( xAxis )
.selectAll("text")
.attr("transform", "translate(-10,0)rotate(-45)")
.style("text-anchor", "end")
.style('font-weight','bold')
.style('font-size','10px')
.style('color','black')
svg.append('g')
.attr('class','y-axis')
.attr('transform',`translate(${ margin.left },0)`)
.call( yAxis )
.selectAll("text")
.style('font-size','10px')
.style('color','black')
.style('font-weight','bold')
return container
}