Skip to content

Commit 8c165be

Browse files
authored
Merge pull request #57 from jamesscottbrown/docs-links
add links to 'Why SveltePlot' page
2 parents f2a39cb + 510982c commit 8c165be

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/routes/why-svelteplot/+page.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Why SveltePlot?
33
description: Why do we need yet another Svelte visualization framework?
44
---
55

6-
SveltePlot combines the concise API and concepts of Observable Plot with Svelte reactivity. It is not just a Svelte-wrapper, but re-implemented from scratch on top of D3. But what makes SveltePlot better than the existing visualization frameworks in Svelte?
6+
SveltePlot combines the concise API and concepts of [Observable Plot](https://observablehq.com/plot/) with [Svelte](https://svelte.dev/) reactivity. It is not just a Svelte-wrapper, but re-implemented from scratch on top of [D3](https://d3js.org/). But what makes SveltePlot better than the existing visualization frameworks in Svelte?
77

88
## Layered grammar of graphics
99

@@ -93,7 +93,7 @@ You can think of marks as the building blocks for your visualizations -- or the
9393

9494
[fork](https://svelte.dev/playground/b329bb028a5445ba8f884291f0475be6?version=5)
9595

96-
This makes it a lot easier to iterate over different ideas for visualizations. For instance, if we want to combine the dot plot above with a line chart, we can just throw in a Line mark as extra layer.
96+
This makes it a lot easier to iterate over different ideas for visualizations. For instance, if we want to combine the dot plot above with a line chart, we can just throw in a [Line mark](/marks/line) as extra layer.
9797

9898
```svelte live
9999
<script>
@@ -149,7 +149,7 @@ This makes it a lot easier to iterate over different ideas for visualizations. F
149149
</Plot>
150150
```
151151

152-
And if we wanted to add uncertainty ranges, we can add a rule mark as well.
152+
And if we wanted to add uncertainty ranges, we can add a [Rule mark](/marks/rule) as well.
153153

154154
```svelte live
155155
<script>
@@ -244,7 +244,7 @@ Take the following example, where you can filter the data using the [filter](/tr
244244
</Plot>
245245
```
246246

247-
Here's an example where we're binding a live-updated dataset to a line mark. Note how the `<path>` elements rendering the line and area get re-used, and ticks and grid lines get moved around instead of being re-created on every frame:
247+
Here's an example where we're binding a live-updated dataset to a [Line mark](/marks/line). Note how the `<path>` elements rendering the line and area get re-used, and ticks and grid lines get moved around instead of being re-created on every frame:
248248

249249
```svelte live
250250
<script lang="ts">
@@ -336,6 +336,7 @@ Here's an example where we're binding a live-updated dataset to a line mark. Not
336336
[fork](https://svelte.dev/playground/e136cdefec7943cba5e6d7b604a2e50c?version=5)
337337

338338
Also, simply by being a Svelte framework, SveltePlot can support tweens and transitions! In the following plot, we're using the [Tween state](https://svelte.dev/docs/svelte-motion#Tween) from `svelte/motion` to smoothly update the vertical domain whenever the data changes.
339+
Try clicking on the bars to change their values.
339340

340341
```svelte live
341342
<script>
@@ -400,7 +401,7 @@ Also, simply by being a Svelte framework, SveltePlot can support tweens and tran
400401

401402
## Easy to extend
402403

403-
You can extend SveltePlot by injecting regular Svelte snippets. For instance, the Line mark allows you to provide custom markers by passing a `marker` snippet. So why no use animated line markers, just because we can?
404+
You can extend SveltePlot by injecting regular Svelte snippets. For instance, the [Line mark](/marks/line) allows you to provide custom markers by passing a `marker` snippet. So why no use animated line markers, just because we can?
404405

405406
```svelte live
406407
<script lang="ts">
@@ -493,4 +494,4 @@ You can extend SveltePlot by injecting regular Svelte snippets. For instance, th
493494

494495
## Built on top of D3
495496

496-
Like its inspiration Observable Plot, SveltePlot is built on top of D3.
497+
Like its inspiration Observable Plot, SveltePlot is built on top of [D3](https://d3js.org/).

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