How to redraw gauge view


#1

how to refresh gauge view? I want to change fillcolor of indicator depending on data,

let gaugeView = page.getViewById("gaugeView");
let scale = gaugeView.scales.getItem(0);
let barIndicator = scale.indicators.getItem(0);
barIndicator.indicatorStyle.fillColor='#008489';

after this when I log fillColor of indicator I see its changed but in the view there is still old color,
thats reason why I’m asking for redraw or refresh meybe it needs to redraw?