Skip to content

Commit 188987c

Browse files
committed
fix default axis opacity
1 parent c5a00a4 commit 188987c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/marks/AxisX.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
tickPadding: 3,
5959
tickFontSize: 11,
6060
titleFontSize: 11,
61+
opacity: 0.8,
6162
anchor: 'bottom',
6263
...getContext<PlotDefaults>('svelteplot/_defaults').axis,
6364
...getContext<PlotDefaults>('svelteplot/_defaults').axisX

src/lib/marks/AxisY.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
tickSize: 6,
5959
tickPadding: 3,
6060
tickFontSize: 11,
61+
opacity: 0.8,
6162
anchor: 'left',
6263
textAnchor: 'auto',
6364
...getContext<PlotDefaults>('svelteplot/_defaults').axis,
@@ -196,7 +197,7 @@
196197
x={anchor === 'left' ? 0 : plot.width}
197198
y={5}
198199
class="axis-x-title"
199-
dominant-baseline="hanging">{options.opacity}-{useTitle}</text>
200+
dominant-baseline="hanging">{useTitle}</text>
200201
{/if}
201202
{#if showAxis}
202203
<BaseAxisY

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