2

I am creating a desktop application using NodeWebKit, sails.js, and AngularJS where users can create documents and add flowcharts, diagrams, etc., similar to draw.io and Gliffy.com, which allows a user to create a flowchart by dragging and dropping from the sidebar.

Are there a JavaScript library which allows me to do that?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Abhishek
  • 1,999
  • 5
  • 26
  • 52

4 Answers4

2

D3.js would be a good starting point if you are going to code the functionality yourself. It allows you to manipulate SVG images with the use of data.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
hudsond7
  • 666
  • 8
  • 25
2

For the same reason I created Diagramo. It's open source and it might fit your need.

Alex
  • 5,510
  • 8
  • 35
  • 54
1

There are many graph drawing libraries available.

Even the library that draw.io is based on is available commercially.

My personal recommendation would be the yFiles for HTML JavaScript graph drawing library library, though, which to the best of my knowledge is the most feature complete commercially available library of that kind.

I work for the company that creates said library, so you may find my opinion biased. I do not represent my employer here on Stack Overflow, though. This is my own opinion.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Sebastian
  • 7,729
  • 2
  • 37
  • 69
1

The underlying library to draw.io is available on GitHub.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Frodo Baggins
  • 8,290
  • 6
  • 45
  • 55
  • Yes, mxGraph is the library I am learning now. Its API is quite large to produce various kinds of nice looking diagrams. – Lex Soft Jul 12 '20 at 03:08