We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09797ee commit fd99323Copy full SHA for fd99323
src/Chartjs/assets/dist/controller.js
@@ -1,6 +1,7 @@
1
import { Controller } from '@hotwired/stimulus';
2
-import Chart from 'chart.js/auto';
+import { Chart, registerables } from 'chart.js';
3
4
+Chart.register(...registerables);
5
let isChartInitialized = false;
6
class default_1 extends Controller {
7
constructor() {
src/Chartjs/assets/src/controller.ts
@@ -10,7 +10,9 @@
10
'use strict';
11
12
13
14
+
15
16
17
18
0 commit comments