myChart = {
const arcs = myPolarData;
const lineArcs = myPolarLineData
const legendArcs = myPolarLegendData
const spacer = 50
const svg = d3.create("svg")
.attr("viewBox", [-width / 2, -height / 2, width, height])
.attr("transform", "rotate(-90) translate(-100)")
svg.append("g")
.selectAll("path")
.data(arcs)
.join("path")
.attr("fill", (d,i) => myColor[i])
.attr("d", myArc)
var legend = svg.append("g").attr("class", "legend");
legend
.selectAll("path")
.data(legendArcs)
.join("path")
.attr("stroke", (d,i) => myLegendColor[i])
.attr("stroke-width", 2)
.attr('fill', 'transparent')
.attr("d", myLineArc)
var lines = svg.append("g").attr("class", "lines");
lines
.selectAll("path")
.data(lineArcs)
.join("path")
.attr("stroke", (d,i) => i?'gray': 'white')
.attr('stroke-dasharray', '4 4')
.attr('opacity', .5)
.attr('fill', 'transparent')
.attr("d", myLineArc)
return svg.node();
}