display: true,
position: 'top',
fullWidth: true, // marks that this box should take the full width of the canvas (pushing down other boxes)
+ reverse: false,
// a callback that will handle
onClick: function(e, legendItem) {
beforeBuildLabels: helpers.noop,
buildLabels: function() {
this.legendItems = this.options.labels.generateLabels.call(this, this.chart.data);
+ if(this.options.reverse){
+ this.legendItems.reverse();
+ }
},
afterBuildLabels: helpers.noop,
}
});
-};
\ No newline at end of file
+};
display: true,
position: 'top',
fullWidth: true, // marks that this box should take the full width of the canvas (pushing down other boxes)
+ reverse: false,
// a callback that will handle
onClick: jasmine.any(Function),
"args": ["dataset3", 228, 132]
}]);
});
-});
\ No newline at end of file
+});