Zoomable network graph in AngularJS

前端 未结 4 1901
醉话见心
醉话见心 2021-01-30 04:41

I would like to visualize a network graph in an AngularJS application. The nodes and edges are stored as a JSON object, and nodes will be added and modified later on (say once e

4条回答
  •  抹茶落季
    2021-01-30 05:06

    In a commercial context you should also consider yFiles for HTML as a library for bringing high-quality graph visualization to Angular (and AngularJS) powered-apps.

    It's a full-featured graph drawing and editing software library that provides solutions for all your graphing and diagramming needs.

    Specifically 1000 nodes are not a problem, at least if this is not on low-end, older mobile devices, in which case only simple visualizations will provide good performance. But even then, with the unique hybrid rendering engine that can leverage all of SVG, Canvas, and WebGL at the same time in a diagram even that should work.

    For a thousand nodes with each one line of text on them, on low-end devices it will be problematic to display all of them on the screen at the same time, however virtualization also helps here.

    There are some live, online demos that show different levels of Angular(2+) and AngularJS integrations, but if you really want to play with the library on a programming level, you should download it and check out the non-minified sources for those demos. For Angular2+ development a complete set of TypeScript bindings is available and the samples show how to bind angular-data to the graph visualization as well as how to optionally use angular for the templating of the SVG visualizations. Of course they also include the core graph visualization Angular component.

    Disclosure: I work for the company that provides that library, however I do not represent my employer on SO.

提交回复
热议问题