Bug 1222419 - copying histogram: percental distribution values should have correct values. r=gfritzsche

This commit is contained in:
Sebastian Hengst 2015-11-06 13:35:03 +01:00
parent 74083aac1d
commit ff22ab370f

View File

@ -1104,7 +1104,7 @@ var Histogram = {
+ " ".repeat(Math.max(0, labelPadTo - String(label).length)) + label // Right-aligned label
+ " |" + "#".repeat(Math.round(MAX_BAR_CHARS * barValue / maxBarValue)) // Bar
+ " " + value // Value
+ " " + Math.round(100 * value / aHgram.sum) + "%"; // Percentage
+ " " + Math.round(100 * value / aHgram.sample_count) + "%"; // Percentage
// Construct the HTML labels + bars
let belowEm = Math.round(MAX_BAR_HEIGHT * (barValue / maxBarValue) * 10) / 10;