mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-18 07:14:26 +01:00
Show values in legend
This commit is contained in:
@@ -26,6 +26,7 @@ $(document).ready(function(){
|
|||||||
seriesDefaults: {
|
seriesDefaults: {
|
||||||
// Make this a pie chart.
|
// Make this a pie chart.
|
||||||
renderer: jQuery.jqplot.PieRenderer,
|
renderer: jQuery.jqplot.PieRenderer,
|
||||||
|
pointLabels: true,
|
||||||
rendererOptions: {
|
rendererOptions: {
|
||||||
// Put data labels on the pie slices.
|
// Put data labels on the pie slices.
|
||||||
// By default, labels show the percentage of the slice.
|
// 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>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user