Updated radar chart and documentation

This commit is contained in:
Artorias 2025-03-23 21:39:26 +01:00
parent 6c407db15c
commit a891e03e32

View file

@ -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;

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Before After
Before After