score:5

Accepted answer

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?

score:1

Try

legendTemplate: function(data) { return "<ul>LEGEND</ul>"; }

instead. Seems like some bug in the chart.js.


Related Query

More Query from same tag