Skip to content

Commit

Permalink
Fixed #945 - The ChartJs API is not imported correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jun 25, 2019
1 parent 2dc894a commit 5d71691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/chart/Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d71691

Please sign in to comment.