1.0.4 • Published 3 years ago
svelte-spark v1.0.4
Sparklines with svelte
<script>
//Import Sparkline
const arr = [100, 111, 105, 111, 108, 109, 106, 109, 111, 115, 108, 111, 105, 111, 108, 109, 106, 109, 111, 115]
</script>
<SparkLine data={arr}/>Will generate this

Options
| name | desc |
|---|---|
| data | takes an array of numbers |
| color | hexcode, default #7098cf |
| strokeWidth | width of the line, default 1px |
| height | height of the spark default 50px |
| width | width of the spark default 100px |