Skip to content

Commit 28250bd

Browse files
committed
Forms: svg stroke then fill
1 parent 9d300cf commit 28250bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

demos/line-paths.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
cursor: {
172172
points: {
173173
size: (u, seriesIdx) => u.series[seriesIdx].points.size * 2.5,
174-
width: (u, seriesIdx, size) => size / 4,
174+
width: (u, seriesIdx, size) => size,
175175
stroke: (u, seriesIdx) => u.series[seriesIdx].points.stroke(u, seriesIdx) + '90',
176176
fill: (u, seriesIdx) => "#fff",
177177
},

src/uPlot.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,8 @@
147147
.u-cursor-y.u-off,
148148
.u-cursor-pt.u-off {
149149
display: none;
150+
}
151+
152+
svg {
153+
paint-order: stroke;
150154
}

0 commit comments

Comments
 (0)