The invention provides a visual network
topological graph dynamic drawing and
layout method based on Antv / X6, relates to the technical field of front-end graph
visualization, and solves the problems of insufficient dynamics, low
layout efficiency, poor interaction experience and poor integration expansibility in the existing
network topology drawing technology. The method comprises the following steps: firstly, constructing a standardized
data model decoupled from a rendering layer, and describing a
network topology structure; initializing a canvas instance based on an Antv / X6 graphic engine, instantiating the standardized
data model into a graphic object, and adding the graphic object into a canvas; through selection and application of various
layout strategies, executing a
layout algorithm to calculate node coordinates and trigger
animation transition, and generating a visual network
topological graph which can be operated by a user; when a user performs multi-dimensional dynamic interaction with the
topological graph, data changes are managed and monitored, and re-rendering or re-layout is triggered. According to the method, the requirements of automatic drawing, dynamic layout optimization, smooth interaction, high
maintainability and the like of the topological graph can be smoothly met.