Skip to content

Commit 38fb928

Browse files
authored
Adding plugin support
jtblin#643
1 parent fc4e9a2 commit 38fb928

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

angular-chart.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@
109109
chartColors: '=?',
110110
chartClick: '=?',
111111
chartHover: '=?',
112-
chartDatasetOverride: '=?'
112+
chartDatasetOverride: '=?',
113+
chartPlugins: '=?'
113114
},
114115
link: function (scope, elem/*, attrs */) {
115116
if (useExcanvas) window.G_vmlCanvasManager.initElement(elem[0]);
@@ -181,7 +182,8 @@
181182
scope.chart = new ChartJs.Chart(ctx, {
182183
type: type,
183184
data: data,
184-
options: options
185+
options: options,
186+
plugins: scope.chartPlugins
185187
});
186188
scope.$emit('chart-create', scope.chart);
187189
bindEvents(cvs, scope);

0 commit comments

Comments
 (0)