Vue Stacked Progress Bar component for multiple staged progress.
Vue Stacked Progress Bar is a Single File Component can be used to exhibit data list in progress line. It also provide a handy ui to represent comparing paired data values.
You can install it from npm
npm i vue-stacked-progress-bar
Register Vue component and provide prop data.
<template>
<div id="app">
<StackedProgressBar :list="values" :striped="false" :label-location="labelLocation"/>
</div>
</template>
<script>
import StackedProgressBar from './components/StackedProgressBar.vue'
export default {
name: 'app',
components: {
StackedProgressBar
},
data() {
return {
values: [
{ text: '20.TL', description: 'İlk Taksit', percentage: 30, striped: true, color: '#60c558'},
{ text: '1220.TL', description: 'Toplam Ödeme', percentage: 30, striped: false, color: '#60c558' }
// { text: '420.TL', description: 'Kalan', percentage: 60, striped: true, color: '#edabba' }
],
labelLocation: 'outside'
}
}
}
</script>
Here is a JSfiddle demo you can test.
This project is licensed under the MIT License