We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef0142a commit 1c98536Copy full SHA for 1c98536
zmsstatistic/js/block/warehousereport/index.js
@@ -1,5 +1,5 @@
1
import BaseView from "../../lib/baseview"
2
-import Chartjs from "chart.js"
+import Chart from "chart.js/auto"
3
4
class View extends BaseView {
5
@@ -75,7 +75,7 @@ class View extends BaseView {
75
const $canvas = this.$.find(".chartist canvas");
76
const canvascontext = $canvas[0].getContext('2d');
77
//console.log(datasets);
78
- new Chartjs(canvascontext, {
+ new Chart(canvascontext, {
79
type: 'line',
80
data: {
81
labels: labels,
0 commit comments