chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height])
svg.append("g")
.selectAll("rect")
.data(data)
.join("rect")
.attr("x", (d, i) => x(i))
.attr("y", d => y(d.value))
.attr("height", d => y(0) - y(d.value))
.attr("width", x.bandwidth())
.attr("fill", d=> (d.name == "Klaza" ? conditionalColor:color));
svg.append("line")
.style("stroke", "darkgrey")
.style("stroke-dasharray", 4)
.style("stroke-width", 2)
.attr("x1", margin.left)
.attr("y1", 360)
.attr("x2", width-margin.right)
.attr("y2", 360);
svg.append("g")
.call(xAxis);
svg.append("g")
.call(yAxis);
return svg.node();
}