fix charting issue (#9094)

* fix charting issue

* fix charting issue 2

* revert version bump
This commit is contained in:
Alan Ren
2020-02-07 17:42:58 -08:00
committed by GitHub
parent 1a2381cc7c
commit 8c61538a27
3 changed files with 7 additions and 7 deletions

View File

@@ -163,8 +163,8 @@ export class Graph implements IInsight {
this.chartjs.config.type = this.options.type;
// we don't want to include lables for timeSeries
this.chartjs.data.labels = this.originalType === 'timeSeries' ? [] : labels;
this.chartjs.config.options = this.transformOptions(this.options);
this.chartjs.update(0);
this.chartjs.options = this.transformOptions(this.options);
this.chartjs.update({ duration: 0 });
} else {
this.chartjs = new chartjs.Chart(this.canvas.getContext('2d'), {
data: {