flow-visualizer
flow-visualizer
A Vue component that intuitively represents Flow in Vue. It is an alternative to Sankey Charts.
Installation
npm i flow-visualizer
Flow Diagram

Browser
Include the script file, then install the component with Vue.use(FlowVisualizer); e.g.:
<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/flow-visualizer/dist/flow-visualizer.min.js"></script>
<script type="text/javascript">
Vue.use(FlowVisualizer);
</script>
Module
import FlowVisualizer from 'flow-visualizer';
Usage
Once installed, it can be used in a template as simply as:
Use this template where you want to represent the flow.
<flow-visualizer
flowId="buyJourney"
primaryColor=#4f4f4f
activeColor=#fcbf2d
inactiveColor=#f4e642
:dataSet=dataSet>
</flow-visualizer>
Add data for depending dataSet in script.
export default {
...
data() {
return {
dataSet:[
{"from":"otp","to":"otp","weight":5},
{"from":"dob","to":"otp","weight":8},
{"from":"mobileDob","to":"otp","weight":8},
{"from":"mobileDob","to":"mobileDob","weight":10},
{"from":"mobileDob","to":"dob","weight":10},
{"from":"otp","to":"reviewSubmit","weight":10},
{"from":"confirm","to":"reviewSubmit","weight":2},
{"from":"otp","to":"review","weight":4},
{"from":"offers","to":"review","weight":1},
{"from":"otp","to":"offers","weight":1},
{"from":"confirm","to":"confirm","weight":2},
{"from":"review","to":"confirm","weight":3}]
}
}
}
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.37 | ^2.6.10 | ||
| 0.1.36 | ^2.6.10 | ||
| 0.1.35 | ^2.6.10 | ||
| 0.1.34 | ^2.6.10 | ||
| 0.1.33 | ^2.6.10 | ||
| 0.1.32 | ^2.6.10 | ||
| 0.1.31 | ^2.6.10 | ||
| 0.1.30 | ^2.6.10 | ||
| 0.1.29 | ^2.6.10 | ||
| 0.1.28 | ^2.6.10 | ||
| 0.1.27 | ^2.6.10 | ||
| 0.1.26 | ^2.6.10 | ||
| 0.1.25 | ^2.6.10 | ||
| 0.1.24 | ^2.6.10 | ||
| 0.1.23 | ^2.6.10 | ||
| 0.1.22 | ^2.6.10 | ||
| 0.1.21 | ^2.6.10 | ||
| 0.1.20 | ^2.6.10 | ||
| 0.1.19 | ^2.6.10 | ||
| 0.1.18 | ^2.6.10 | ||
| 0.1.17 | ^2.6.10 | ||
| 0.1.16 | ^2.6.10 | ||
| 0.1.15 | ^2.6.10 | ||
| 0.1.14 | ^2.6.10 | ||
| 0.1.13 | ^2.6.10 | ||
| 0.1.12 | ^2.6.10 | ||
| 0.1.11 | ^2.6.10 | ||
| 0.1.10 | ^2.6.10 | ||
| 0.1.9 | ^2.6.10 | ||
| 0.1.8 | ^2.6.10 |
Showing the latest 30 of 38. See every release on npm