Converting Basic D3 Charts into Reusable Style Templates
Not on the map. Why?
Abstract (arXiv)
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 implementation focuses on generating templates for basic chart types (e.g. variants of bar charts, line charts, dot plots, scatterplots, etc.), these are the most commonly used chart types today. Users can easily find such basic D3 charts on the Web, turn them into templates, and immediately see how their own data would look in the visual style (e.g. colors, shapes, fonts, etc.) of the templates. We demonstrate the effectiveness of our approach by applying a diverse set of style templates to a variety of source datasets.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Sep 2016.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 1; 2025: 1; 2026: 3.
7 papers.
- 2022Chart Question Answering: State of the Art and Future Directionscited by 26
- 2024Generative AI for Visualization: State of the Art and Future Directionscited by 23
- 2023Mystique: Deconstructing SVG Charts for Layout Reusecited by 4
- 2026VisEditBench: Can Vision-Language Models Edit Visualization Code from Multimodal Feedback?cited by 2
- 2025Challenges & Opportunities with LLM-Assisted Visualization Retargetingcited by 1
- 2026From Static to Interactive: Authoring Interactive Visualizations via Natural Languagecited by 0
- 2026Chart2SVG: Editable SVG Generation from Raster Chart Imagescited by 0
- 2026Chart2SVG: Editable SVG Generation from Raster Chart Images27 Aug 2026
- 2026VisEditBench: Can Vision-Language Models Edit Visualization Code from Multimodal Feedback?11 Aug 2026
- 2026From Static to Interactive: Authoring Interactive Visualizations via Natural Language25 Jan 2026
- 2025Challenges & Opportunities with LLM-Assisted Visualization Retargeting2 Jul 2025
- 2024Generative AI for Visualization: State of the Art and Future Directions28 Apr 2024
- 2023Mystique: Deconstructing SVG Charts for Layout Reuse25 Jul 2023
- 2022Chart Question Answering: State of the Art and Future Directions8 May 2022