[Chartjs]-Chart.js – generateLegend() call results in "undefined is not a function"

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.

Leave a comment