Skip to content

Commit b8a2b7b

Browse files
committed
chart.js fixes
1 parent a7b4d5c commit b8a2b7b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/bundle/Resources/encore/ibexa.js.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const layout = [
3232
path.resolve(__dirname, '../public/js/scripts/core/split.btn.js'),
3333
path.resolve(__dirname, '../public/js/scripts/core/pie.chart.js'),
3434
path.resolve(__dirname, '../public/js/scripts/core/bar.chart.js'),
35+
path.resolve(__dirname, '../public/js/scripts/core/doughnut.chart.js'),
3536
path.resolve(__dirname, '../public/js/scripts/core/adaptive.items.js'),
3637
path.resolve(__dirname, '../public/js/scripts/core/popup.menu.js'),
3738
path.resolve(__dirname, '../public/js/scripts/core/tag.view.select.js'),

src/bundle/Resources/public/js/scripts/core/base.chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
},
3030
};
31-
const defaultPlugins = {};
31+
const defaultPlugins = [];
3232

3333
class BaseChart {
3434
constructor(data, options = {}, plugins = []) {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(function (global, doc, ibexa) {
22
class DoughnutChart extends ibexa.core.BaseChart {
3-
constructor(data) {
4-
super(data);
3+
constructor(data, options = {}, plugins = []) {
4+
super(data, options, plugins);
55

66
this.type = 'doughnut';
77
}
@@ -11,5 +11,5 @@
1111
}
1212
}
1313

14-
ibexa.addConfig('core.chart.Doughnut', DoughnutChart);
14+
ibexa.addConfig('core.chart.DoughnutChart', DoughnutChart);
1515
})(window, window.document, window.ibexa);

0 commit comments

Comments
 (0)