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 ac6cf3f commit c6ff343Copy full SHA for c6ff343
2 files changed
.changeset/tiny-cooks-wash.md
@@ -0,0 +1,5 @@
1
+---
2
+"layerchart": patch
3
4
+
5
+[Axis] Fallback to tick value if no tick format defined (band scales)
packages/layerchart/src/lib/components/Axis.svelte
@@ -244,7 +244,7 @@
244
<Text
245
x={orientation === 'angle' ? radialTickCoords[0] : tickCoords.x}
246
y={orientation === 'angle' ? radialTickCoords[1] : tickCoords.y}
247
- value={formatValue(tick, format ?? scale.tickFormat?.())}
+ value={formatValue(tick, format ?? scale.tickFormat?.() ?? ((v) => v))}
248
{...getDefaultLabelProps(tick)}
249
{...labelProps}
250
class={cls(
0 commit comments