mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 22:23:32 +08:00
made sure graph tooltip legends are filled with color
This commit is contained in:
parent
23d50ec179
commit
39c7578d7e
1 changed files with 3 additions and 0 deletions
|
@ -1412,8 +1412,10 @@ function showResult(difficultyFailed = false) {
|
|||
}
|
||||
|
||||
wpmOverTimeChart.data.datasets[0].borderColor = themeColors.main;
|
||||
wpmOverTimeChart.data.datasets[0].pointBackgroundColor = themeColors.main;
|
||||
wpmOverTimeChart.data.datasets[0].data = wpmHistory;
|
||||
wpmOverTimeChart.data.datasets[1].borderColor = themeColors.sub;
|
||||
wpmOverTimeChart.data.datasets[1].pointBackgroundColor = themeColors.sub;
|
||||
wpmOverTimeChart.data.datasets[1].data = rawWpmPerSecond;
|
||||
|
||||
wpmOverTimeChart.options.annotation.annotations[0].borderColor =
|
||||
|
@ -3597,6 +3599,7 @@ let wpmOverTimeChart = new Chart(ctx, {
|
|||
data: [],
|
||||
// backgroundColor: 'rgba(255, 255, 255, 0.25)',
|
||||
borderColor: "rgba(255, 125, 125, 1)",
|
||||
pointBackgroundColor: "rgba(255, 125, 125, 1)",
|
||||
borderWidth: 2,
|
||||
order: 1,
|
||||
yAxisID: "error",
|
||||
|
|
Loading…
Reference in a new issue