mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Added colour to simulator tooltip (#3692)
* Added colour to simulator tooltip * ./check
This commit is contained in:
parent
9499473caa
commit
59391e96fb
1 changed files with 3 additions and 1 deletions
|
@ -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>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue