The application provides a hierarchical grouping rectangular association
graph layout method and device, the method comprises the following steps: S1, constructing a
tree data structure, presetting classification levels of the
tree data structure, distances of different levels and a
layout rectangular width-height ratio; S2, obtaining data, classifying and grouping the data according to attributes, and storing the classified and grouped data in the
tree data structure constructed in the step S1, wherein leaf nodes of the tree
data structure are grouping results of the data, and non-leaf nodes of the tree
data structure are hierarchical results of the data; S3, traversing all nodes, judging whether only leaf nodes exist, if only leaf nodes exist, placing the leaf nodes after position calculation according to the predetermined distance and the rectangular width-height ratio, and if not only leaf nodes exist, executing the step S4; and S4, judging whether the non-leaf nodes are root nodes, if not, taking the non-leaf nodes as new leaf nodes, and returning to execute the step S3, and if yes, ending the operation.