4 ms·
Canviz: Graphiz on Canvas
The source is available here: http://code.google.com/p/canviz/
- vdm 17y agoWhy use Canvas over SVG for this? Is browser SVG support that bad? I don't mean the to diss the project, it just seems more appropriate to use vector graphics for this.
- ajross 17y agoThe canvas API is vector graphics. The distinction is between retained (or "scene graph") and immediate mode APIs, not between vector and raster. And that's sort of an issue of taste. Some things are easier to code one way, some the other.
- dantheman 17y agoThe source is available here: http://code.google.com/p/canviz/ http://code.google.com/p/canviz/
- endergen 17y agoAbout time! I've just been too lazy to port it myself. Thank you very very much!
- Groxx 17y agoNice. I've been wondering how graphviz stuff has been going... I pulled the source a while ago and nearly ran screaming o_O This is a lot smaller & cleaner. On a side note, anyone know a good source to learn how to port graphviz? Or, what parts are relevant and what aren't? Though I suppose this serves as a starting point.
- th0ma5 17y agoimportant to note that this does not do any layout, it uses the intermediate .gv format, which has been pre-processed by graphviz.
- fnid2 17y agoIf the .gv compilation was in javascript, it would be a complete solution. That's a project i'd be willing to commit some time to.
- th0ma5 17y agonoble goal, i think it could be done, however, the layout is the thing that is the most computationally expensive, and really the magic of graphviz. there are other programs that can do this, and there are a lot of js/as layout things out there. a quick google brought up a force-directed graph with javascript http://www.kylescholz.com/blog/2006/06/force_directed_graphs_in_javas.html http://www.kylescholz.com/blog/2006/06/force_directed_graphs...
- fnid2 17y agoThat's a neat graph engine. I'll look into it and see if I can use something like that. Thanks.