0.1.37 • Published 4 years ago

flow-visualizer v0.1.37

Weekly downloads
115
License
-
Repository
-
Last release
4 years ago

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

alt text

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}]
    }
  }
}
0.1.37

4 years ago

0.1.36

4 years ago

0.1.35

4 years ago

0.1.30

4 years ago

0.1.31

4 years ago

0.1.32

4 years ago

0.1.33

4 years ago

0.1.34

4 years ago

0.1.28

4 years ago

0.1.29

4 years ago

0.1.27

4 years ago

0.1.23

4 years ago

0.1.24

4 years ago

0.1.25

4 years ago

0.1.26

4 years ago

0.1.22

4 years ago

0.1.20

4 years ago

0.1.21

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago