Skip to content

Commit effd7ab

Browse files
committed
add tick interval example
1 parent 3f52a20 commit effd7ab

File tree

7 files changed

+15
-0
lines changed

7 files changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script module>
2+
export const title = 'Tick interval';
3+
</script>
4+
5+
<script>
6+
import { Plot, AxisX, AxisY, Line } from 'svelteplot';
7+
import { page } from '$app/state';
8+
let { aapl } = $derived(page.data.data);
9+
</script>
10+
11+
<Plot>
12+
<AxisX interval="6 months" />
13+
<AxisY interval={25} />
14+
<Line data={aapl} x="Date" y="Close" />
15+
</Plot>
39.2 KB
Loading

static/examples/axis/tick-count.png

37.9 KB
Loading
33.9 KB
Loading
32.6 KB
Loading
46.1 KB
Loading

static/examples/axis/tick-spacing.png

44.7 KB
Loading

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