Programming by manipulation for layout

Thibaud Hottelier, Ras Bodik and Kimiko Ryokai

Abstract

We present Programming by Manipulation, a new programming methodology for specifying the layout of data visualizations, targeted at non-programmers. We address the two central sources of bugs that arise when programming with constraints: ambiguities and conflicts (inconsistencies). We rule out conflicts by design and exploit ambiguity to explore possible layout designs. Our users design layouts by highlighting undesirable aspects of a current design, effectively breaking spurious constraints and introducing ambiguity by giving some elements freedom to move or resize. Subsequently, the tool indicates how the ambiguity can be removed, by computing how the free elements can be fixed with available constraints. To support this workflow, our tool computes the ambiguity and summarizes it visually. We evaluate our work with two user-studies demonstrating that both non-programmers and programmers can effectively use our prototype. Our results suggest that our tool is 5-times more productive than direct programming with constraints.

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

Cite

@inproceedings{hottelier-etal-2014-programming,
    title = {{Programming by manipulation for layout}},
    author = {Thibaud Hottelier and Ras Bodik and Kimiko Ryokai},
    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.2647378},
    url = {https://doi.org/10.1145/2642918.2647378},
    abstract = {We present Programming by Manipulation, a new programming methodology for specifying the layout of data visualizations, targeted at non-programmers. We address the two central sources of bugs that arise when programming with constraints: ambiguities and conflicts (inconsistencies). We rule out conflicts by design and exploit ambiguity to explore possible layout designs. Our users design layouts by highlighting undesirable aspects of a current design, effectively breaking spurious constraints and introducing ambiguity by giving some elements freedom to move or resize. Subsequently, the tool indicates how the ambiguity can be removed, by computing how the free elements can be fixed with available constraints. To support this workflow, our tool computes the ambiguity and summarizes it visually. We evaluate our work with two user-studies demonstrating that both non-programmers and programmers can effectively use our prototype. Our results suggest that our tool is 5-times more productive than direct programming with constraints.}
}