Git Product home page Git Product logo

graph-viz-d3-js's Introduction

Graphviz dot in your browser

Repository graph-viz-d3-js contains code editor and live preview of code. Check out editor live demo.

Build Status Coverage Status

Features

  • Code editor with syntax highlighting and error annotations
  • Sneak live preview of dot graph in SVG

Design

Editor is based on Ace and syntax highlighting uses its default mode/dot. Error annotations are generated by parser written in PEG.js.

Graphviz is embedded in browser using viz.js. Instead of using SVG directly it uses xdot format and parses it. Data structure on the output is drawn using d3.js with nice animations during coding.

Roadmap

  • Test suite using Graphviz gallery examples (50% done)
  • Add code completion for dot source editor
  • Improve animations with path tweening and concatenation of arrow heads with arrow arcs
  • Move dot parsing to Ace WebWorker
  • Move viz.js and xdot parsing to separate WebWorker
  • Custom viz.js compile with xdot output only to optimize size

License

Currently project is available on LGPL so you can use it unmodified in free or commercial projects. If you add improvements to it you must share them.

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.