5👍
✅
Interestingly, if I change the code as follows:
var chart = new Chart(ctx).Line(data, ctxOptions);
the legend works as expected!?
A bug with chart.js?
1👍
Try
legendTemplate: function(data) { return "<ul>LEGEND</ul>"; }
instead. Seems like some bug in the chart.js.
Source:stackexchange.com