There is an application on ASP.NET MVC that works with the database (a project under Visual Studio 2010). It is necessary to visualize the data from the database in the form of a chart. Used for this jit.js, ForceDirected . But this chart does not suit the customer. Need to:

  1. all elements were in the form of rectangles (with different color of the border depending on the values);
  2. the data was written inside rectangles, not side by side, and inside it was possible to add not only text, but also a drawing;
  3. the connections between the elements were depicted as different types of lines (solid, dotted, dash-dotted, etc.) of different colors;
  4. elements could be moved in such a way that the communication lines did not intersect and be printed out in the same way (taking into account how the user moved the objects);
  5. You could right-click on the link or element on the diagram and the link / element was deleted from the diagram (but not from the database) and when you clicked the print button, that element was not there either.

Those. to have a chart like this diagram Are there ready-made libraries for building such diagrams, and if not, in which direction to look when developing your own?

  • Create it in the dgml editor or directly from the code (because dgml is xml), and show it on the page as svg or gif. see here - Stack
  • and under Visual Studio 2010 is there like? - Gala
  • The dgml editor is even in the free VS Community 2015, but I don’t know in VS 2010. but if not, then see msagl - Stack
  • See if there is something appropriate among the examples of D3js - Sergiks
  • @Stack, dgml followed by export to svg is of course useful in some situations. However, the author’s task is to implement the functionality of creating and editing diagrams not at all in the visual studio - it needs to be directly in the client’s browser, on the fly. Otherwise, it could also stupidly sketch a diagram in Microsoft Visio, also exporting the result to SVG / PNG - there will be more tools and ready-made elements in VIsio than in a DGML editor. - Sergey Rufanov

1 answer 1

Try mxGraph or GoJS . In particular, among the examples, GoJS is quite similar to your task - you can just slightly correct what the customer does not like.