Skip to content

Commit 14baa29

Browse files
committed
fix: x,y are not required channels for text mark
1 parent 03e74cb commit 14baa29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/marks/Text.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
fontSize: 12,
5151
fontWeight: 500,
5252
strokeWidth: 1.6,
53+
frameAnchor: 'center',
5354
...getContext<PlotDefaults>('svelteplot/_defaults').text
5455
};
5556
@@ -94,7 +95,7 @@
9495
'strokeOpacity',
9596
'fillOpacity'
9697
]}
97-
required={['x', 'y']}
98+
required={[]}
9899
{...args}>
99100
{#snippet children({ mark, scaledData, usedScales })}
100101
<GroupMultiple class="text {className}" length={className ? 2 : args.data.length}>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy