An example implementation of d3-graphviz in React + Vite for a Graphviz & DOT Language code editor with live preview. Built using d3/d3-graphviz and CodeMirror.
Try it out here: gviz-vite.vercel.app
- Live compilation/preview
- Basic syntax validation with error messages
- Example DOT files to get you started
- Dynamic layout engine switching
- Node.js 18.0.0 or better
- npm 8.0.0 or better
Clone the project:
git clone https://github.com/noahshotz/graphviz-vite.git
Navigate into the directory:
cd graphviz-vite
Install dependencies:
npm install
Run locally:
npm run dev