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.
1 parent c84dea5 commit 57b52a9Copy full SHA for 57b52a9
.changeset/clear-ghosts-arrive.md
@@ -0,0 +1,5 @@
1
+---
2
+'layerchart': patch
3
4
+
5
+fix(LineChart): Restore passing xScale / yScale overrides
packages/layerchart/src/lib/components/charts/LineChart.svelte
@@ -317,10 +317,12 @@
317
<Chart
318
bind:context
319
data={chartData}
320
+ {xScale}
321
x={xProp ?? (isVertical ? series.map((s) => s.value ?? s.key) : undefined)}
322
{xDomain}
323
xBaseline={!isVertical || (xScale && isScaleTime(xScale)) ? undefined : 0}
324
xNice={orientation === 'vertical'}
325
+ {yScale}
326
y={yProp ?? (isVertical ? undefined : series.map((s) => s.value ?? s.key))}
327
yBaseline={isVertical || (yScale && isScaleTime(yScale)) ? undefined : 0}
328
yNice={orientation === 'horizontal'}
0 commit comments