A set of simple svelte charts that are:
npm install --save-dev @bobbymannino/svelte-charts
<!-- +page.svelte -->
<script lang="ts">
import { BarChart, ScatterGraph } from "@bobbymannino/svelte-charts";
let data = [500, 800, 24, 58];
</script>
<!-- The chart will fit to your container, this is an example one -->
<div style="width: 100px; height: 100px">
<BarChart {data} />
</div>
<div style="width: 100px; height: 100px">
<ScatterGraph {data} />
</div>
<!-- +page.svelte -->
<script lang="ts">
import { BarChart } from "@bobbymannino/svelte-charts";
let data = [500, 800, 24, 58];
</script>
<!-- The chart will fit to your container, this is an example one -->
<div style="width: 100px; height: 100px">
<BarChart {data} rounding="pill" color="#ff0000" />
</div>
Property Name | Property Type | Property Default |
---|---|---|
color | any CSS color as a string | '#3a4efa' |
rounding | 'rounded' | 'pill' | 'square' | 'rounded' |
data | number[] |
Note: 'rounding' only works on 'BarChart' component
Submit all bugs and/or feature requests to the issues panel panel on GitHub