@michmich112/svelte-chartjs
v1.1.1
Published
[](https://badge.fury.io/js/svelte-chartjs) [](https://app.fossa.com/projects/g
Readme
svelte-chartjs
Svelte wrapper for chart.js Open for PRs and contributions!
Full Documentation and demo here
Installation
npm i svelte-chartjsUsage
<script>
import Line from "svelte-chartjs/src/Line.svelte"
</script>
<Line data={...} />Custom Size
In order for Chart.js to obey the custom size you need to set maintainAspectRatio to false, example:
<Bar
data={data}
width={100}
height={50}
options={{ maintainAspectRatio: false }}
/>