Added colour to simulator tooltip (#3692)

* Added colour to simulator tooltip

* ./check
This commit is contained in:
Luc Mcgrady 2025-01-09 10:44:54 +00:00 committed by GitHub
parent 67202c6501
commit 0842e51880

View file

@ -196,7 +196,9 @@ export function renderSimulationChart(
const hidden = path.classed("hidden");
if (!hidden) {
tooltipContent += `#${key}: ${formatY(value)}<br>`;
tooltipContent += `<span style="color:${color[(parseInt(key) - 1) % color.length]}">■</span> #${key}: ${
formatY(value)
}<br>`;
}
}