Skip to content

Instantly share code, notes, and snippets.

@transcendr
Created December 1, 2023 07:39
Show Gist options
  • Save transcendr/33e0b094a7c3e545350929c9edaa3884 to your computer and use it in GitHub Desktop.
Save transcendr/33e0b094a7c3e545350929c9edaa3884 to your computer and use it in GitHub Desktop.
onChartInstance(chart: Highcharts.Chart) {
this.chart = chart;
}
redrawWithUpdate(updated: Highcharts.Options) {
const cached = JSON.stringify(updated);
//console.log('Redrawing with update', JSON.stringify(updated));
setTimeout(() => {
this.chartOptions = JSON.parse(cached);
this.chart?.redraw();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment