Giter Club home page Giter Club logo

redux-react-d3-graph's Introduction

redux-react-d3-flow-graph

redux-graph-flow as a npm package

a tree flow graph component

This will be a simple react component which showing how to draw a tree graph with d3, and synchronize state with other components, using Redux.

When we want to draw a flow which can be operated on the page and synchroize state with the persistence layer(e.g. ReduxStore/Server/DB). As far as I am concerned there are two sort of operations which should be provide to the user:

  • Firstly, Operations upon Node

    • ADD / DELETE / DRAG POSITION
      • to manipulate the nodes in the flow
    • ACTIVATE (hover or click) to get the current [node] details
      • active particular node and get detail of the node
      • update the detail information in the current activated node
  • And Secondly, Operations upon Link

    • ADD / DELETE
      • manipulate the links in the flow
    • ACTIVATE (hover or click) to:
      • get the current selected [link]'s details info
      • activate the editable state, and update the link info.
  • Along with each operations, an Redux Action will be emitted to update the Redux Store, if necessary, update the remote server state using redux-thunk or redux-saga.

start a develop server

  • use the command below to start the webpack-dev-server with hot module reloading

npm start

then open the http://localhost:9000/in your browser. <>

eslint

  • use the command below to lint the code npm run eslint

  • and this command to fix eslint warnnings & errors npm run eslint:fix

redux-react-d3-graph's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.