in src/visual.ts [241:272]
public update(options: VisualUpdateOptions) {
if (!options
|| !options.dataViews
|| !options.dataViews[0]
) {
return;
}
this.layout.viewport = options.viewport;
const data: LineDotChartViewModel = LineDotChart.converter(
options.dataViews[0],
this.hostService,
this.localizationManager,
this.colorHelper,
);
if (!data || _.isEmpty(data.dotPoints)) {
this.clear();
return;
}
this.data = data;
if (this.interactivityService) {
this.interactivityService.applySelectionStateToData(this.data.dotPoints);
}
this.resize();
this.calculateAxes();
this.draw();
}