From a6dd4d4634b2f5ee09a2d6b5ba5834f1a8ceb481 Mon Sep 17 00:00:00 2001 From: AltmannPeter <134623745+AltmannPeter@users.noreply.github.com> Date: Fri, 28 Jul 2023 14:09:47 +0200 Subject: [PATCH] Update script.js --- script.js | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/script.js b/script.js index 15766da..ee61486 100644 --- a/script.js +++ b/script.js @@ -109,52 +109,7 @@ function updateTable() { row.appendChild(asrCell); tableBody.appendChild(row); }); - generateGraph(); // Call generateGraph after updating the table } -function generateGraph() { - const biases = []; - const compressedSizes = []; - - // Extract relevant data for the chart - analysisData.forEach((data) => { - biases.push(data.bias.toFixed(2) + "%"); - compressedSizes.push(data.compressedSize); - }); - - const ctx = document.getElementById("analysis-chart").getContext("2d"); - const chart = new Chart(ctx, { - type: "bar", - data: { - labels: biases, - datasets: [ - { - label: "Gzip Compressed ASL Size (bytes)", - data: compressedSizes, - backgroundColor: "rgba(75, 192, 192, 0.6)", - borderColor: "rgba(75, 192, 192, 1)", - borderWidth: 1, - }, - ], - }, - options: { - responsive: true, - scales: { - x: { - type: "linear", - min: 0, - ticks: { - stepSize: 1, - }, - y: { - beginAtZero: true, - }, - }, - }, - }); -} - - - // Show an empty table when the page loads updateTable();