mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-15 08:14:02 +01:00
Show values in legend
This commit is contained in:
@@ -26,6 +26,7 @@ $(document).ready(function(){
|
||||
seriesDefaults: {
|
||||
// Make this a pie chart.
|
||||
renderer: jQuery.jqplot.PieRenderer,
|
||||
pointLabels: true,
|
||||
rendererOptions: {
|
||||
// Put data labels on the pie slices.
|
||||
// By default, labels show the percentage of the slice.
|
||||
@@ -38,7 +39,13 @@ $(document).ready(function(){
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: { show:true, location: 'e' }
|
||||
legend: {
|
||||
show:true,
|
||||
location: 'e',
|
||||
labels: $(data).map(function (i, item) {
|
||||
return item[0]+" ("+item[1]+")";
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user