in src/visual.ts [1135:1177]
public renderChart(): void {
if (!this.data) {
return;
}
const data: ChartData = this.data,
series: Series[] = this.data.series;
this.rootSelection = this.chart
.selectAll(Visual.LineNode.selectorName)
.data(series);
this.rootSelection
.exit()
.remove();
this.rootSelection = this.rootSelection
.enter()
.append("g")
.merge(this.rootSelection);
const lineNode: Selection<any> = this.rootSelection;
lineNode.classed(Visual.LineNode.className, true);
lineNode
.append("g")
.classed(Visual.LineContainer.className, true);
lineNode
.append("g")
.classed(Visual.TooltipContainer.className, true);
lineNode
.append("g")
.classed(Visual.DotsContainer.className, true);
if (this.animationHandler.isAnimated) {
this.showAnimationDot();
} else {
this.hideAnimationDot();
}
this.drawLines();
this.drawDots(data);
this.drawTooltips(data);
}