diff --git a/docs/overrides/javascript/benchmark.js b/docs/overrides/javascript/benchmark.js index b089a5a8..f81e27ec 100644 --- a/docs/overrides/javascript/benchmark.js +++ b/docs/overrides/javascript/benchmark.js @@ -121,7 +121,7 @@ function updateChart(initialDatasets = []) { initialDatasets.length > 0 ? initialDatasets : Object.keys(data); // Create the datasets for the selected algorithms. - const datasets = Object.keys(data).map((algorithm, i) => { + const datasets = selectedAlgorithms.map((algorithm, i) => { const baseColor = colorMap[algorithm] || `hsl(${Math.random() * 360}, 70%, 50%)`; const lineColor = @@ -144,7 +144,7 @@ function updateChart(initialDatasets = []) { pointBackgroundColor: lineColor, pointBorderColor: "#ffffff", // Add a border around points for contrast. borderWidth: i === 0 ? 3 : 1.5, // Slightly increase line size for the primary dataset. - hidden: !initialDatasets.includes(algorithm), + hidden: false, }; });