Deconstructing and restyling D3 visualizations

Jonathan Harper and Maneesh Agrawala

Abstract

The D3 JavaScript library has become a ubiquitous tool for developing visualizations on the Web. Yet, once a D3 visualization is published online its visual style is difficult to change. We present a pair of tools for deconstructing and restyling existing D3 visualizations. Our deconstruction tool analyzes a D3 visualization to extract the data, the marks and the mappings between them. Our restyling tool lets users modify the visual attributes of the marks as well as the mappings from the data to these attributes. Together our tools allow users to easily modify D3 visualizations without examining the underlying code and we show how they can be used to deconstruct and restyle a variety of D3 visualizations.

Venue
UIST 2014
Volume
Proceedings of the 27th annual ACM symposium on User interface software and technology
DOI
10.1145/2642918.2647411
PDF
https://dl.acm.org/doi/pdf/10.1145/2642918.2647411
Anthology ID
2014.uist.66

Cite

@inproceedings{harper-agrawala-2014-deconstructing,
    title = {{Deconstructing and restyling D3 visualizations}},
    author = {Jonathan Harper and Maneesh Agrawala},
    booktitle = {Proceedings of the 27th annual ACM symposium on User interface software and technology},
    isbn = {9781450330695},
    year = {2014},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/2642918.2647411},
    url = {https://doi.org/10.1145/2642918.2647411},
    abstract = {The D3 JavaScript library has become a ubiquitous tool for developing visualizations on the Web. Yet, once a D3 visualization is published online its visual style is difficult to change. We present a pair of tools for deconstructing and restyling existing D3 visualizations. Our deconstruction tool analyzes a D3 visualization to extract the data, the marks and the mappings between them. Our restyling tool lets users modify the visual attributes of the marks as well as the mappings from the data to these attributes. Together our tools allow users to easily modify D3 visualizations without examining the underlying code and we show how they can be used to deconstruct and restyle a variety of D3 visualizations.}
}