chart.xkcd-svelte
v1.0.7
Published
Svelte Wrapper for chart.xkcd
Downloads
7
Maintainers
Readme
chart.xkcd-svelte
Svelte wrapper around chart.xkcd
Check chart.xkcd for detailed documentation.
docs for configurations you can find in the official library page
Dependencies
chart.xkcd@^1.1.12
must be installed to use this library
Quick Start
Install npm i chart.xkcd-svelte
<script>
import chartXkcd from 'chart.xkcd';
import Chart from "chart.xkcd-svelte";
let bar_chart = {
title: 'github stars VS patron number', // optional
data: {
labels: ['github stars', 'patrons'],
datasets: [{
data: [10, 5]
}],
},
options: { // optional
yTickCount: 2,
},
}
</script>
<Chart type="bar" options={bar_chart}></Chart>