From 5d71691e396a98e6a1a3159bb827a1eca7db33ab Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 25 Jun 2019 11:35:39 +0300 Subject: [PATCH] Fixed #945 - The ChartJs API is not imported correctly --- src/components/chart/Chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chart/Chart.js b/src/components/chart/Chart.js index 8b7faf2ad8..b4064353f5 100644 --- a/src/components/chart/Chart.js +++ b/src/components/chart/Chart.js @@ -28,7 +28,7 @@ export class Chart extends Component { }; initChart() { - this.chart = new ChartJS(this.canvas, { + this.chart = new ChartJS.Chart(this.canvas, { type: this.props.type, data: this.props.data, options: this.props.options