1.0.4 • Published 1 year ago

svelte-spark v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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

namedesc
datatakes an array of numbers
colorhexcode, default #7098cf
strokeWidthwidth of the line, default 1px
heightheight of the spark default 50px
widthwidth of the spark default 100px