Chartjs-Chart.js Legend not showing

1👍

Fixed it with a latest update in jsfiddle.

var doughnutOptions = {
    legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>"

}

http://jsfiddle.net/mark5ahm/3k2be814/5/

Leave a comment