mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
removed error points where y == 0
This commit is contained in:
parent
ddd70386f5
commit
8e44f8135f
1 changed files with 6 additions and 2 deletions
|
@ -1186,7 +1186,7 @@ if (firebase.app().options.projectId === "monkey-type-dev-67af4") {
|
|||
$("#top .logo .bottom").text("monkey-dev");
|
||||
$("head title").text("Monkey Dev")
|
||||
}
|
||||
|
||||
1
|
||||
if (window.location.hostname === "localhost") {
|
||||
$("#top .logo .top").text("localhost");
|
||||
$("head title").text($("head title").text() + " (localhost)");
|
||||
|
@ -1227,7 +1227,11 @@ let wpmOverTimeChart = new Chart(ctx, {
|
|||
maxBarThickness: 10,
|
||||
type: "scatter",
|
||||
pointStyle: "crossRot",
|
||||
radius: 4
|
||||
radius: function(context) {
|
||||
var index = context.dataIndex;
|
||||
var value = context.dataset.data[index];
|
||||
return value.y <= 0 ? 0 : 4
|
||||
}
|
||||
}],
|
||||
},
|
||||
options: {
|
||||
|
|
Loading…
Reference in a new issue