All Projects β†’ joyceworks β†’ Flowchart Vue

joyceworks / Flowchart Vue

Licence: mit
Flowchart & designer component for Vue.js.

Projects that are alternatives of or similar to Flowchart Vue

Just Dashboard
πŸ“Š πŸ“‹ Dashboards using YAML or JSON files
Stars: ✭ 1,511 (+1044.7%)
Mutual labels:  d3
Scattertext
Beautiful visualizations of how language differs among document types.
Stars: ✭ 1,722 (+1204.55%)
Mutual labels:  d3
Easypz
Easy Pan and Zoom JS Library
Stars: ✭ 125 (-5.3%)
Mutual labels:  d3
Nomnoml
The sassy UML diagram renderer
Stars: ✭ 1,685 (+1176.52%)
Mutual labels:  flowchart
Plotly.net
.NET interface for plotly.js written in F# πŸ“ˆ
Stars: ✭ 119 (-9.85%)
Mutual labels:  d3
Hexo Filter Flowchart
Generate flowchart diagrams for Hexo.
Stars: ✭ 121 (-8.33%)
Mutual labels:  flowchart
Stockflux
StockFlux is a desktop application developed by Scott Logic that uses the OpenFin HTML5 container together with React, Redux, ES2015 and d3fc
Stars: ✭ 112 (-15.15%)
Mutual labels:  d3
Earthjs
D3 Earth JS
Stars: ✭ 128 (-3.03%)
Mutual labels:  d3
Project Pages
Fork this repo for a quick start. If "Project Timeline" or "License" appeared on your nav bar, Look Below!
Stars: ✭ 119 (-9.85%)
Mutual labels:  d3
React Wordcloud
☁️ Simple React + D3 wordcloud component with powerful features.
Stars: ✭ 124 (-6.06%)
Mutual labels:  d3
Markvis
make visualization in markdown. πŸ“ŠπŸ“ˆ
Stars: ✭ 1,509 (+1043.18%)
Mutual labels:  d3
Timeline Lwc
An interactive timeline for the Salesforce platform.
Stars: ✭ 116 (-12.12%)
Mutual labels:  d3
Eon Chart
Realtime animated graphs with PubNub and C3.
Stars: ✭ 121 (-8.33%)
Mutual labels:  d3
X6
πŸš€ JavaScript diagramming library that uses SVG and HTML for rendering.
Stars: ✭ 2,686 (+1934.85%)
Mutual labels:  flowchart
React D3 Components
D3 Components for React
Stars: ✭ 1,599 (+1111.36%)
Mutual labels:  d3
Vue D3
a vue.js plugin for D3
Stars: ✭ 113 (-14.39%)
Mutual labels:  d3
Jsplumb Example
Draw a flow chart with vue and jsplumb
Stars: ✭ 121 (-8.33%)
Mutual labels:  flowchart
Django Netjsongraph
Network Topology Visualizer & Network Topology Collector
Stars: ✭ 131 (-0.76%)
Mutual labels:  d3
Rd3
Playground for React & D3.js
Stars: ✭ 128 (-3.03%)
Mutual labels:  d3
Fgtk
A set of a misc tools to work with files and processes
Stars: ✭ 121 (-8.33%)
Mutual labels:  d3

Flowchart

Flowchart & Flowchart designer component for Vue.js(flowchart-react for React.js).

NPM

English | δΈ­ζ–‡

Usage

yarn add flowchart-vue
<template>
    <div id="app">
        <button type="button" @click="$refs.chart.add({id: +new Date(), x: 10, y: 10, name: 'New', type: 'operation', approvers: []})">
            Add
        </button>
        <button type="button" @click="$refs.chart.remove()">
            Del
        </button>
        <button type="button" @click="$refs.chart.editCurrent()">
            Edit
        </button>
        <button type="button" @click="$refs.chart.save()">
            Save
        </button>
        <flowchart :nodes="nodes" :connections="connections" @editnode="handleEditNode"
                    @dblclick="handleDblClick" @editconnection="handleEditConnection" 
                    @save="handleChartSave" ref="chart">
        </flowchart>
    </div>
</template>
<script>
  import Vue from 'vue';
  import FlowChart from 'flowchart-vue';

  Vue.use(FlowChart);

  export default {
    name: 'App',
    data: function() {
      return {
        nodes: [
          // Basic fields
          {id: 1, x: 140, y: 270, name: 'Start', type: 'start'},
          // You can add any generic fields to node, for example: description
          // It will be passed to @save, @editnode
          {id: 2, x: 540, y: 270, name: 'End', type: 'end', description: 'I'm here'},
        ],
        connections: [
          {
            source: {id: 1, position: 'right'},
            destination: {id: 2, position: 'left'},
            id: 1,
            type: 'pass',
          },
        ],
      };
    },
    methods: {
      handleChartSave(nodes, connections) {
        // axios.post(url, {nodes, connections}).then(resp => {
        //   this.nodes = resp.data.nodes;
        //   this.connections = resp.data.connections;
        //   // Flowchart will refresh after this.nodes and this.connections changed
        // });
      },
      handleEditNode(node) {
        if (node.id === 2) {
          console.log(node.description);
        }
      },
      handleEditConnection(connection) {
      },
      handleDblClick(position) {
        this.$refs.chart.add({
          id: +new Date(),
          x: position.x,
          y: position.y,
          name: 'New',
          type: 'operation',
          approvers: [],
        });
      },
    }
  };
</script>

See more at src/views/App.vue.

Demo

  • GitHub Pages

  • Development Environment

    git clone https://github.com/joyceworks/flowchart-vue.git
    cd flowchart-vue
    yarn install
    yarn run serve
    

    Then open http://localhost:yourport/ in browser.

API

See Wiki.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].