chart = {
const height = 600;
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height])
.attr("font-family", "sans-serif")
.attr("font-size", 10);
const yAxis = d3.axisLeft(scaleY);
const xAxis = d3.axisTop(scaleX);
const padding = 10;
const xAxisPlot = svg.append("g")
.attr("class", "axis axis--x")
.attr("transform", `translate(45, 0)`)
.call(xAxis.tickSize(-height, 0, 0))
const yAxisPlot = svg.append("g")
.attr("class", "axis axis--y")
.attr("transform", `translate(45, 0)`)
.call(yAxis.tickSize(-width, 0, 0))
yAxisPlot.selectAll(".tick line")
.attr("stroke", "silver")
.attr("x1", -10)
.attr("x2", width * 1);
yAxisPlot.selectAll("path.domain")
.attr("stroke", "silver")
yAxisPlot.selectAll(".tick text")
.attr("x", -10)
xAxisPlot.selectAll(".tick text")
.attr("transform", `translate(100, 35)`)
.attr("font", "bold 18px serif;")
xAxisPlot.selectAll(".tick line")
.attr("stroke", "silver")
.attr("y1", -5)
.attr("y2", (width - 0)* 1);
return svg.node()
}