0.1.37 • Published 5 years ago

flow-visualizer v0.1.37

Weekly downloads
115
License
-
Repository
-
Last release
5 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

5 years ago

0.1.36

5 years ago

0.1.35

5 years ago

0.1.30

5 years ago

0.1.31

5 years ago

0.1.32

5 years ago

0.1.33

5 years ago

0.1.34

5 years ago

0.1.28

5 years ago

0.1.29

5 years ago

0.1.27

5 years ago

0.1.23

5 years ago

0.1.24

5 years ago

0.1.25

5 years ago

0.1.26

5 years ago

0.1.22

5 years ago

0.1.20

5 years ago

0.1.21

5 years ago

0.1.15

5 years ago

0.1.16

5 years ago

0.1.17

5 years ago

0.1.18

5 years ago

0.1.19

5 years ago

0.1.10

5 years ago

0.1.11

5 years ago

0.1.12

5 years ago

0.1.13

5 years ago

0.1.14

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago