private resize()

in src/visual.ts [572:606]


    private resize(): void {
        this.root
            .attr("width", this.layout.viewport.width)
            .attr("height", this.layout.viewport.height);

        this.main.attr(
            "transform",
            SVGManipulations.translate(this.layout.margin.left, this.layout.margin.top)
        );

        this.legends.attr(
            "transform",
            SVGManipulations.translate(this.layout.margin.left, this.layout.margin.top)
        );

        this.line.attr(
            "transform",
            SVGManipulations.translate(this.layout.margin.left + LineDotChart.LegendSize, 0)
        );

        this.axes.attr(
            "transform",
            SVGManipulations.translate(this.layout.margin.left + LineDotChart.LegendSize, 0)
        );

        this.axisX.attr(
            "transform",
            SVGManipulations.translate(0, this.layout.viewportIn.height - LineDotChart.LegendSize)
        );

        this.axisY2.attr(
            "transform",
            SVGManipulations.translate(this.layout.viewportIn.width - LineDotChart.LegendSize - LineDotChart.AxisSize, 0)
        );
    }