Algorithm design of binding multi-layer data by using D3.js
Data visualization is an essential research field in current data analysis,widely used in scenarios such as scientific research,business decision-making,information dissemination,and daily life.Big data and computer image processing have pro-moted the development of visualization technology,and there is a wide variety of visualization tools and techniques available on the market.Taking the currently popular visualization tool D3.js as an example to discusses the processing ideas when loading multi-layer data.By comparing the conventional method of repeatedly loading and binding data to complete traversal,a method of generating nestable tags by recursively calling the key functions built into D3.js to bind object array data is proposed,which in-creases the reusability of code,improves the robustness of the program,and optimizes the primitive hierarchy.