svelte-spark
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

spark

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

Package Sidebar

Install

npm i svelte-spark

Weekly Downloads

40

Version

1.0.4

License

none

Unpacked Size

3.89 kB

Total Files

6

Last publish

Collaborators

  • luknyb