We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0
1 parent 43cf4f0 commit e174069Copy full SHA for e174069
2 files changed
.changeset/lovely-loops-ring.md
@@ -0,0 +1,5 @@
1
+---
2
+'layerchart': patch
3
4
+
5
+fix(Highlight): Fix display of lines for first values (`0` coord). Fixes #568
packages/layerchart/src/lib/components/Highlight.svelte
@@ -175,7 +175,7 @@
175
y2: max(ctx.yRange) as unknown as number,
176
})),
177
];
178
- } else if (xCoord) {
+ } else if (xCoord != null) {
179
tmpLines = [
180
...tmpLines,
181
{
@@ -201,7 +201,7 @@
201
y2: yItem + yOffset,
202
203
204
- } else if (yCoord) {
+ } else if (yCoord != null) {
205
206
207
0 commit comments