Converting Basic D3 Charts into Reusable Style Templates
Jonathan Harper, Maneesh Agrawala

TL;DR
This paper introduces a method to convert basic D3 charts into reusable style templates, enabling easy application of visual styles to new data sources while preserving perceptual effectiveness.
Contribution
It presents a novel technique for deconstructing D3 charts into style templates and applying them to new data, enhancing chart reusability and visual consistency.
Findings
Templates can be applied to various data sources.
Style transfer maintains perceptual effectiveness.
Method supports common chart types.
Abstract
We present a technique for converting a basic D3 chart into a reusable style template. Then, given a new data source we can apply the style template to generate a chart that depicts the new data, but in the style of the template. To construct the style template we first deconstruct the input D3 chart to recover its underlying structure: the data, the marks and the mappings that describe how the marks encode the data. We then rank the perceptual effectiveness of the deconstructed mappings. To apply the resulting style template to a new data source we first obtain importance ranks for each new data field. We then adjust the template mappings to depict the source data by matching the most important data fields to the most perceptually effective mappings. We show how the style templates can be applied to source data in the form of either a data table or another D3 chart. While our…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData Visualization and Analytics · Image Retrieval and Classification Techniques · Data Analysis with R
