diff --git a/src/core/operations/FrequencyDistribution.mjs b/src/core/operations/FrequencyDistribution.mjs
index 0c4c1563..a9c10390 100644
--- a/src/core/operations/FrequencyDistribution.mjs
+++ b/src/core/operations/FrequencyDistribution.mjs
@@ -81,15 +81,14 @@ class FrequencyDistribution extends Operation {
* @returns {html}
*/
present(freq, args) {
- const showZeroes = args[0];
- const showAscii = args[1];
+ const [showZeroes, showAscii] = args;
+
// Print
let output = `
Total data length: ${freq.dataLength}
Number of bytes represented: ${freq.bytesRepresented}
Number of bytes not represented: ${256 - freq.bytesRepresented}
-Byte Percentage
`;
+
+
Byte | ${showAscii ? "ASCII | " : ""}Percentage | ${Utils.hex(i, 2)} | `, + ascii = showAscii ? `${c} | ` : "", + percentage = `${(freq.percentages[i].toFixed(2).replace(".00", "") + "%").padEnd(8, " ")} | `, + bars = `${Array(Math.ceil(freq.percentages[i])+1).join("|")} | `; + + output += `
---|---|---|---|