1.0.4 • Published 2 years ago

@credenceanalytics/sparkline-chart v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Sparkline Chart

How to use?

  • Step 1 - Import the component
import SparklineChart from '@credenceanalytics/sparkline-chart'
  • Step 2 - Mention SparklineChart in the components section
export default {
    components:{
        SparklineChart
    }
}
  • Step 3 - Use it in the Vue template
    <div style="width: 100px">
        <SparklineChart :data="[808, 1475, 1426, 1884, 1396]" :options="{fill:'red'}" />
        <SparklineChart :data="[1, 4, 2, 10, 9]" :options="{'stroke-width':'2', fill:'none', stroke: 'red'}" />
        <SparklineChart :data="[90, 80, 60, 30, 40]"/>
    </div>

Props

Prop nameTypeValue (example)Default
dataArray[ 3, 15, 76, 43, 3 ,23][0,0]
optionsObject{fill: "red","stroke-width": "5",stroke: "#ef7878"}{fill: "none","stroke-width": "3",stroke: "grey"}

Demo

Code Sandbox

Release History

VersionNotes
1.0.3Demo on Code Sandbox
1.0.2Readme update
1.0.1Removed devDependencies, and Readme update
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago