in src/radarChart.ts [553:585]
private clear(): void {
this.mainGroupElement
.select(RadarChart.AxisSelector.selectorName)
.selectAll(RadarChart.AxisNodeSelector.selectorName)
.remove();
this.mainGroupElement
.select(RadarChart.AxisSelector.selectorName)
.selectAll(RadarChart.AxisLabelSelector.selectorName)
.remove();
this.mainGroupElement
.select(RadarChart.AxisSelector.selectorName)
.selectAll(RadarChart.AxisLabelLinkShortLineSelector.selectorName)
.remove();
this.mainGroupElement
.select(RadarChart.AxisSelector.selectorName)
.selectAll(RadarChart.AxisLabelLinkLongLineSelector.selectorName)
.remove();
this.mainGroupElement
.select(RadarChart.SegmentsSelector.selectorName)
.selectAll(RadarChart.SegmentNodeSElector.selectorName)
.remove();
this.chart
.selectAll("*")
.remove();
this.legend.reset();
this.legend.drawLegend({ dataPoints: [] }, _.clone(this.viewport));
}