chart = {
const svg = d3.select(DOM.svg(width, height+(margin*2)));
const containerWidth = width-(margin*2);
const containerHeight = height-(margin*2);
const container = svg.append('g')
.attr("width", containerWidth)
.attr("height", containerHeight)
.attr('transform', `translate(${(width/2)+margin}, ${(height/2)+margin})`);
const path = container.append('path')
.attr("d", radarLine(data))
.attr("fill", color)
.attr("fill-opacity", 0.1)
.attr("stroke", color)
.attr("stroke-width", 2);
const interval = setInterval(function() {
const updatedData = updateData();
path.transition()
.duration(1000)
.ease(d3.easeCubicInOut)
.attr("d", radarLine(updatedData));
}, 1000);
return svg.node();
}