Skip to content

Commit 1c98536

Browse files
committed
chore(deps): update Chart.js import to use auto bundle
1 parent ef0142a commit 1c98536

File tree

1 file changed

+2
-2
lines changed
  • zmsstatistic/js/block/warehousereport

1 file changed

+2
-2
lines changed

zmsstatistic/js/block/warehousereport/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import BaseView from "../../lib/baseview"
2-
import Chartjs from "chart.js"
2+
import Chart from "chart.js/auto"
33

44
class View extends BaseView {
55

@@ -75,7 +75,7 @@ class View extends BaseView {
7575
const $canvas = this.$.find(".chartist canvas");
7676
const canvascontext = $canvas[0].getContext('2d');
7777
//console.log(datasets);
78-
new Chartjs(canvascontext, {
78+
new Chart(canvascontext, {
7979
type: 'line',
8080
data: {
8181
labels: labels,

0 commit comments

Comments
 (0)