in src/chordChart.ts [630:664]
public update(options: VisualUpdateOptions): void {
this.eventService.renderingStarted(options);
try {
// assert dataView
if (!options.dataViews || !options.dataViews[0]) {
return;
}
this.layout.viewport = options.viewport;
this.layout.viewport = options.viewport;
this.data = ChordChart.CONVERTER(
options.dataViews[0],
this.host,
this.colors,
this.localizationManager
);
if (!this.data) {
this.clear();
return;
}
this.layout.resetMargin();
this.layout.margin.top = this.layout.margin.bottom =
PixelConverter.fromPointToPixel(this.settings.labels.fontSize) / 2;
this.render();
this.eventService.renderingFinished(options);
} catch (e) {
this.eventService.renderingFailed(options, e);
}
}