From a891e03e32fe941de2ec494b0221321a6308f097 Mon Sep 17 00:00:00 2001 From: Artorias Date: Sun, 23 Mar 2025 21:39:26 +0100 Subject: [PATCH] Updated radar chart and documentation --- src/main/resources/templates/sentimentsRadarChart.ftl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/sentimentsRadarChart.ftl b/src/main/resources/templates/sentimentsRadarChart.ftl index f6cff63..b479755 100644 --- a/src/main/resources/templates/sentimentsRadarChart.ftl +++ b/src/main/resources/templates/sentimentsRadarChart.ftl @@ -54,7 +54,7 @@ .attr("fill", "none"); } - // Draw axes & labels + // Axes and Labels axes.forEach(d => { var end = polarToCartesian(centerX, centerY, maxRadius, d.angle); svg.append("line") @@ -70,7 +70,7 @@ .text(d.axis); }); - // Generate unique random colors + // Random Colors var colors = []; sentimentData.forEach(() => { let color; @@ -101,7 +101,7 @@ .attr("fill-opacity", 0.3); }); - // Legend with wrap every 30 entries & hover highlight + tooltip + bring to front + // Legend var legend = svg.append("g").attr("transform", "translate(" + (width - 200) + ",50)"); sentimentData.forEach((sent, i) => { var col = Math.floor(i/30), row = i%30;