No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

svelte-chartjs

This package is separate from mdbsvelte. It's a wrapper of chart.js

Installation

npm

npm i svelte-chartjs

yarn

yarn add svelte-chartjs

Usage

<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 }}
/>

Checkout Examples to see detailed usage

Examples