i want to add the label value for the pie legend, but i can only see the label without the value.
This is what i see
but i want to see the value for each letter
var ctx = $('#chart').find('canvas').get(0).getContext('2d');
var myPieChart = new Chart(ctx).Pie(data2,options);
var legend = myPieChart.generateLegend();
$('#chart').find('.legend').html(legend);
You can set the legend template to include the value next to the label like;
EDIT:
if you would like to display the percentage the value represents you can access the
total
within the template like solegendTemplate: "<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%> : <%=(segments[i].value/total)*100%>% <%}%></li><%}%></ul>",