Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/src/content/guides/migrate-from-v1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Migrate from v1
---

## Chart Sizing

In version 1 of Layerchart, it required that you add a wrapping div to define the size of the chart. This is now optional, and the height and width can be set directly on the root LayerChart component.

```svelte diff
<script lang="ts">
import { LineChart } from '@layerchart/svelte';
</script>

- <div class="h-[300]">
- <LineChart {data} />
+ <LineChart {data} height={300} />
- </div>
```

...More to come soon!
Loading