Commit 145221ad authored by Leo Iannacone's avatar Leo Iannacone

do not show total size for distribution on x-axis, show distributions sorted by name

parent aecfc213
...@@ -215,6 +215,8 @@ function Page_History() { ...@@ -215,6 +215,8 @@ function Page_History() {
} }
} }
distributions.sort();
for (var i = 0; i < subdirs.length; i++) { for (var i = 0; i < subdirs.length; i++) {
series.push({ series.push({
name: subdirs[i], name: subdirs[i],
...@@ -222,16 +224,12 @@ function Page_History() { ...@@ -222,16 +224,12 @@ function Page_History() {
}); });
} }
for (i = 0; i < distributions.length; i++) {
labels.push(distributions[i] + ' (' + total_sizes[distributions[i]] + ' MB)');
}
var options = { var options = {
seriesBarDistance: 12 seriesBarDistance: 12
}; };
Chartist.Bar('#disk-chart', { Chartist.Bar('#disk-chart', {
labels: labels, labels: distributions,
series: series series: series
}, options); }, options);
......
Markdown is supported
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