Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Legend #9

Open
cdagli opened this issue May 14, 2015 · 1 comment
Open

Template Legend #9

cdagli opened this issue May 14, 2015 · 1 comment

Comments

@cdagli
Copy link

cdagli commented May 14, 2015

Hello,

Is there anyway to add chart legend to the png file? Below is the legend example that I've taken from chart.js docs.

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

Thank you

@Leeh91
Copy link

Leeh91 commented Feb 19, 2016

I would like to know this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants