in src/visual.ts [59:80]
public update(options: VisualUpdateOptions) {
if(options.dataViews && options.dataViews[0]){
const dataView: DataView = options.dataViews[0];
this.viewport = options.viewport;
const { width, height } = this.viewport;
const size = Math.min(width, height);
this.settings = <VisualSettings>VisualSettings.parse(dataView);
const object = this.settings.circle;
ReactCircleCard.update({
size,
borderWidth: object && object.circleThickness ? object.circleThickness : undefined,
background: object && object.circleColor ? object.circleColor : undefined,
textLabel: dataView.metadata.columns[0].displayName,
textValue: dataView.single.value.toString()
});
} else {
this.clear();
}
}