g_star.selectAll(".star-label")
.data(platformPercentages)
.join("text")
.attr("class", "star-label")
.attr("x", (d, i) => (radiusScale(d.value) + 10) * Math.cos(angles[i] - Math.PI / 2))
.attr("y", (d, i) => (radiusScale(d.value) + 10) * Math.sin(angles[i] - Math.PI / 2))
.attr("dy", "0.35em")
.style("text-anchor", (d, i) => {
const angleDeg = (angles[i] * 180) / Math.PI;
return (angleDeg > 90 && angleDeg < 270) ? "end" : "start";
})
.style("font-size", "10px")
.text(d => d.name)