Commit 38e805d5 authored by Celine Noirot's avatar Celine Noirot
Browse files

Fix #12 - add size in piechart representation - could add a datatable see later

parent 6682a58c
......@@ -603,7 +603,6 @@ function refresh_project_obsolete(obsolete_project_datatable){
var row=[checkbox, "<a href='index.php?id=3&tx_nG6_pi1[project_id]="+key+"'>"+values["project_name"]+"</a>", values["nb_runs"]];
var nb_purgeable_element=0,
nb_all_element=parseInt(values["nb_runs"], 10);
console.log("nb_purgeable_element: ", nb_purgeable_element,"; nb_all_element ", nb_all_element);
if (values["state"].hasOwnProperty('stored') && values["state"]["stored"] != null && values["state"]["stored"]['nb_run'] != null) {
row.push(values["state"]["stored"]['nb_run']+ " (" + get_octet_string_representation(values["state"]["stored"]['size_run'],2) + ")")
nb_purgeable_element+=parseInt(values["state"]["stored"]['nb_run']);
......@@ -831,7 +830,10 @@ function drawDataDistribution(stat_tables){
text: 'Data storage size gathered by ' + real_group
},
tooltip: {
pointFormat: '<b>{point.percentage:.1f}%</b>'
formatter: function() {
return '<b>'+ get_octet_string_representation(this.point.y, 2)+'</b> ('+Highcharts.numberFormat(this.percentage, 2)+'%)' ;
}
,shared: true
},
credits: { enabled: false },
plotOptions: {
......@@ -1079,4 +1081,3 @@ function updateUsersButtonStatus() {
$(".nou-selection-btn").each(function(){ $(this).removeAttr('disabled'); });
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment