Refinement Types for Visualization
Open Access
- 27 October 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1871-1881
Abstract
Visualizations have become crucial in the contemporary data-driven world as they aid in exploring, verifying, and sharing insights obtained from data. In this paper, we propose a new paradigm of visualization synthesis based on refinement types. Besides input-output examples, users can optionally use refinement-type annotations to constrain the range of valid values in the example visualization or to express complex interactions between different visual components. Our system's outputs include both data transformation and visualization programs that are consistent with refinement-type specifications. To mitigate the scalability challenge during the synthesis process, we introduce a new visualization synthesis algorithm that uses lightweight bidirectional type checking to prune the search space. As we demonstrate experimentally, this new synthesis algorithm results in significant speed-up compared to prior work. We have implemented the proposed approach in a tool called Calico and evaluated it on 40 visualization tasks collected from online forums and tutorials. Our experiments show that Calico can solve 98% of these benchmarks and, among those benchmarks that can be solved, the desired visualization is among the top-1 output generated by Calico. Furthermore, Calico takes an average of 1.56 seconds to generate the visualization, which is 50 times faster than Viser, a state-of-the-art synthesizer for data visualization.Keywords
Funding Information
- NSF (1908494)
- DARPA (N66001-22-2-4037)
- Google (Faculty Research Awards)
- Ethereum Foundation (Academic Grants)
This publication has 30 references indexed in Scilit:
- Formalizing Visualization Design Knowledge as Constraints: Actionable and Extensible Models in DracoIEEE Transactions on Visualization and Computer Graphics, 2018
- Vega-Lite: A Grammar of Interactive GraphicsIEEE Transactions on Visualization and Computer Graphics, 2016
- Visualization by Demonstration: An Interaction Paradigm for Visual Data ExplorationIEEE Transactions on Visualization and Computer Graphics, 2016
- Visualization-by-Sketching: An Artist's Interface for Creating Multivariate Time-Varying Data VisualizationsIEEE Transactions on Visualization and Computer Graphics, 2015
- Automatically synthesizing SQL queries from input-output examples2013
- D³ Data-Driven DocumentsIEEE Transactions on Visualization and Computer Graphics, 2011
- PolarisCommunications of the ACM, 2008
- Liquid types2008
- Show Me: Automatic Presentation for Visual AnalysisIEEE Transactions on Visualization and Computer Graphics, 2007
- Refinement types for ML1991