• chartjs.org allows us to do something like this:

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

    I’m also concerned about the author’s MIA status. If it isn’t being maintained, will it break with a WP update?, I’m not sure I’ll implement this plugin across my site.

    Too bad, I like its functionality.

  • The topic ‘Needs a legend template’ is closed to new replies.