diff --git a/app/views/statistics/vulnerableLibraries.scala.html b/app/views/statistics/vulnerableLibraries.scala.html index 208c654..e3b8aa6 100644 --- a/app/views/statistics/vulnerableLibraries.scala.html +++ b/app/views/statistics/vulnerableLibraries.scala.html @@ -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]+")"; + }) + } }); });