Skip to content

Commit

Permalink
fix plot warning
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vorobiov committed Sep 24, 2024
1 parent 89fc889 commit a243050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion evolve_analytics.meta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Evolve Analytics
// @namespace http://tampermonkey.net/
// @version 0.4.0
// @version 0.4.1
// @description Track and see detailed information about your runs
// @author Sneed
// @match https://pmotschmann.github.io/Evolve/
Expand Down
2 changes: 2 additions & 0 deletions src/ui/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function* areaMarks(plotPoints: PlotPoint[]) {
yield Plot.areaY(plotPoints, {
x: "run",
y: "dayDiff",
z: "milestone",
fill: "milestone",
fillOpacity: 0.5
});
Expand All @@ -57,6 +58,7 @@ function* lineMarks(plotPoints: PlotPoint[], key: "day" | "segment") {
yield Plot.line(plotPoints, {
x: "run",
y: key,
z: "milestone",
stroke: "milestone",
// Draw the event lines on top of the other ones
sort: (entry: PlotPoint) => entry.dayDiff === undefined ? 1 : 0
Expand Down

0 comments on commit a243050

Please sign in to comment.