chart = {
const minX = x(data[0].date);
const maxX = x(data[data.length - 1].date);
const overwidth = maxX -minX + margin.left + margin.right;
const parent = d3.create("div")
.style("overflow","scroll");
parent.append("svg")
.attr("width",width)
.attr("height",height)
.style("position","absolute")
.style("pointer-events","none")
.style("z-index",1)
.call(svg=> svg.append("g").call(yAxis));
const body = parent.append("svg")
.attr()
parent.node().scrollBy(overwidth, 0);
}