public clear()

in src/visual.ts [278:306]


    public clear() {
        if (this.settings && this.settings.misc) {
            this.settings.misc.isAnimated = false;
        }

        this.axes
            .selectAll(LineDotChart.Axis.selectorName)
            .selectAll("*")
            .remove();

        this.main
            .selectAll(LineDotChart.Legends.selectorName)
            .selectAll("*")
            .remove();

        this.main
            .selectAll(LineDotChart.Line.selectorName)
            .selectAll("*")
            .remove();

        this.main
            .selectAll(LineDotChart.Legend.selectorName)
            .selectAll("*")
            .remove();

        this.line
            .selectAll(LineDotChart.textSelector)
            .remove();
    }