24 comments

[ 2.7 ms ] story [ 58.8 ms ] thread
I like the idea of being able to express diagrams with a "text notation" because it makes it really easy to use these diagrams in documentation or documents with the plus of being able to store then (with code?) in a source control environment.

But this imperative approach tights everything together with the language and then the graph engine is not just a tool, is a lib that you have to incorporate in your system. Based on that I like the declarative approach used by js-sequence-diagrams [1] and flowchart.js [2] much more, it gives you the freedom to use the syntax instead of the code...

js-sequence-diagrams goes even further and creates a svg that has the source it used to generate the image embedded in the markup, so you can aways look the image and go back to add/remove details from your diagram, which is pretty awesome for using in a constantly evolving documentation.

[1] https://github.com/bramp/js-sequence-diagrams

[2] http://adrai.github.io/flowchart.js/

This is pretty incredible work. There are SO many modules and they all seem to work very robustly and cleanly. Very impressed.
This is pretty incredible work. There are SO many modules and they all seem to work very robustly and cleanly. Very impressed.
Looks nice. I also recommend taking a look at http://visjs.org (no affiliation, other than a happy user).
yes, I've used visjs to do some cool stuff but haven't known about GoJS until now. Very impressive. In fact, I'm constantly amazed at the growing number and power of JS libraries in just about every programming domain, data visualisation being just one example.
One major differentiator for visjs:

> Vis.js is dual licensed under both Apache 2.0 and MIT.

Cool! I was looking for an easy way to create a sequence diagram just yesterday, but I did not see anything I was happy with. I will have to give this a shot.
Not to discredit the authors but this reminded me of image maps. Flashback to the early 90's!
Did you get paid to post this? We don't usually get commercial JS libraries on the front page.
Anybody aware of general graph drawing algorithms that are optimal in one sense or the other? Like minimal number of edge-crossings, minimual number of edge-bends, or minimal length of edges, or a combination thereof.

Preferably in JS of course :)

>Internal use from $1350 / developer

>OEM (external) use from $2995 / developer

I'm out of the loop - is that kind of pricing normal?

They require a different subscription for support as well.
Depends on the price of developer's time and their expertise. Seems like higher level D3: http://d3js.org.
Not to be negative but what does this provides over d3.js?
OT: wehaveaname below - you're autoflagged/dead for being a new account logging in over Tor. Just thought you should know.
Thanks for the heads up, it is understandable why that why Hackernews would take such measures but I really hope that the autoflag is a temporary solution until a person reviews my comments.
That's exactly right. Once a moderator sees the comments, we unkill them and mark your account legit so future comments will be fine. In the future, you (or anyone) can always speed that up by emailing us a link at hn@ycombinator.com.

Comments posted from Tor IPs by new accounts are put under moderation because of past abuse by trolls. Sorry for the inconvenience. We have a plan to turn the review process over to the community, which should ease the problem considerably, but I don't know yet when we'll get to it.

Another diagramming library of interest is JointJS[0]. I played just a bit with it to keep it bookmarked as "should validate it for later". The core of the lib is under the Mozilla Public License, which is nice.

[0] http://jointjs.com/

Nothing that you can't do with GraphViz.