首页|使用D3.js绑定多层数据的算法设计

使用D3.js绑定多层数据的算法设计

扫码查看
数据可视化是当前数据分析的重要研究领域,在科学研究、商业决策、信息传播、日常生活等场景已广泛应用.大数据和计算机图像处理促进了可视化技术的发展,目前市面上可视化工具、技术种类繁多.选用当前较为流行的可视化工具D3.js,探讨加载多层数据时的处理思路.对比常规重复加载绑定数据完成遍历的方式,提出通过递归调用D3.js内置的关键函数实现绑定对象数组数据生成可嵌套标签的方法,加大代码的复用性,提高程序的健壮度,优化图元层次结构.
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.

data visualizationD3.jsalgorithm

曾志成

展开 >

广东金融学院财经与新媒体学院,广州 510521

数据可视化 D3.js 算法

2024

现代计算机
中大控股

现代计算机

影响因子:0.292
ISSN:1007-1423
年,卷(期):2024.30(22)