I'd like to put some images and/or links in my chart's labels. Here's the example code and jsFiddle:
var data = {
labels: ['January', '<s>February</s>',
'<img src="http://jsfiddle.net/favicon.png">',
'<a href="http://jsfiddle.net/">A Link</a>'],
datasets: [{
data: [65, 59, 90, 81]
}]
}
var ctx = document.getElementById("myChart").getContext("2d");
var myNewChart = new Chart(ctx).Bar(data);
As you can see, the HTML is not parsed inside labels. Is there a way to have working images and/or links in the chart's labels?
See Question&Answers more detail:os