in src/visual.ts [190:239]
constructor(options: VisualConstructorOptions) {
if (window.location !== window.parent.location) {
require("core-js/stable");
}
this.tooltipServiceWrapper = createTooltipServiceWrapper(
options.host.tooltipService,
options.element
);
this.colorHelper = new ColorHelper(options.host.colorPalette);
this.hostService = options.host;
this.localizationManager = this.hostService.createLocalizationManager();
this.layout = new VisualLayout(null, LineDotChart.viewportMargins);
this.layout.minViewport = LineDotChart.viewportDimensions;
this.interactivityService = createInteractivityService(options.host);
this.behavior = new Behavior();
this.root = d3.select(options.element)
.append("svg")
.classed(LineDotChart.Identity.className, true);
this.main = this.root.append("g");
this.axes = this.main
.append("g")
.classed(LineDotChart.Axes.className, true);
this.axisX = this.axes
.append("g")
.classed(LineDotChart.Axis.className, true);
this.axisY = this.axes
.append("g")
.classed(LineDotChart.Axis.className, true);
this.axisY2 = this.axes
.append("g")
.classed(LineDotChart.Axis.className, true);
this.legends = this.main
.append("g")
.classed(LineDotChart.Legends.className, true);
this.line = this.main
.append("g")
.classed(LineDotChart.Line.className, true);
}