mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
added error rate to the popup
This commit is contained in:
parent
a32011f7d3
commit
4d6ef9c0d7
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ var resultHistoryChart = new Chart($(".pageAccount #resultHistoryChart"), {
|
|||
let resultData =
|
||||
data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
|
||||
if (tooltipItem.datasetIndex !== 0) {
|
||||
return `acc: ${100 - resultData.y}%`;
|
||||
return `error rate: ${resultData.y}%\nacc: ${100 - resultData.y}%`;
|
||||
}
|
||||
let label =
|
||||
`${data.datasets[tooltipItem.datasetIndex].label}: ${
|
||||
|
|
Loading…
Reference in a new issue