mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-11 14:28:42 +00:00
Bug 1222419 - copying histogram: percental distribution values should have correct values. r=gfritzsche
This commit is contained in:
parent
74083aac1d
commit
ff22ab370f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user