可观察用户如何分解 D3 代码?一项定性研究
How do Observable Users Decompose D3 Code? A Qualitative Study
AI总结:
通过对 Observable 上 715 个 D3 程序的定性分析和访谈,识别出程序级、图表级和组件级三种代码分解层次,发现用户偏好组件级推理,并揭示用户实践与图形语法之间的差异,为改进可视化工具包和 AI 助手提供依据。
摘要:
许多工具包开发者寻求通过预设模板和示例库等结构化支持来简化可视化编程过程。然而,很少有项目研究用户如何组织自己的可视化程序,以及他们的编码选择如何可能偏离工具包开发者的意图,从而影响可视化原型制作与设计。此外,即使用户从其他来源复制代码,是否有可能通过其代码间接推断用户的推理方式?我们通过对 Observable 上 715 个 D3 程序进行定性分析来探讨这一问题。我们根据用户将代码分解为更小块的方式,识别出三个层次的程序组织:程序级、图表级和组件级代码分解,其中用户强烈偏好组件级推理。在一系列访谈中,我们证实这些层次反映了 Observable 用户对可视化程序的推理方式。我们将常见的用户自制组件与图形语法中理论化的组件进行比较,以评估用户与工具包开发者推理之间的重叠程度。我们发现,虽然图形语法能很好地涵盖基础可视化,但在描述复杂可视化类型方面存在不足,尤其是那些包含动画、交互和参数化组件的类型。我们的研究结果凸显了用户实践与形式语法之间的差异,并强化了正在进行的重新思考可视化工具包支持的努力,包括增强学习工具和 AI 助手,以更好地反映现实世界的编码策略。
英文摘要:
Many toolkit developers seek to streamline the visualization programming process through structured support such as prescribed templates and example galleries. However, few projects examine how users organize their own visualization programs and how their coding choices may deviate from the intents of toolkit developers, impacting visualization prototyping and design. Further, is it possible to infer users' reasoning indirectly through their code, even when users copy code from other sources? We explore this question through a qualitative analysis of 715 D3 programs on Observable. We identify three levels of program organization based on how users decompose their code into smaller blocks: Program-, Chart-, and Component-Level code decomposition, with a strong preference for Component-Level reasoning. In a series of interviews, we corroborate that these levels reflect how Observable users reason about visualization programs. We compare common user-made components with those theorized in the Grammar of Graphics to assess overlap in user and toolkit developer reasoning. We find that, while the Grammar of Graphics covers basic visualizations well, it falls short in describing complex visualization types, especially those with animation, interaction, and parameterization components. Our findings highlight how user practices differ from formal grammars and reinforce ongoing efforts to rethink visualization toolkit support, including augmenting learning tools and AI assistants to better reflect real-world coding strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。