Ragged Blocks: Rendering Structured Text With Style
Whether it be source code in a programming language, prose in natural language, or otherwise, text is highly structured. Currently, text visualizations are confined either to _flat, line-based_ decorations, which can convey only limited information about textual structure, or _nested boxes_, which convey structure but often destroy the typographic layout of the underlying text. We hypothesize that the lack of rich styling options limits the kinds of information that are displayed alongside text, wherever it may be displayed. In this paper, we show that it is possible to achieve arbitrarily nested decorations while minimally disturbing the underlying typographic layout. Specifically, we present a layout algorithm that generates _ragged blocks_, or _rocks_, which are rectilinear polygons that allow nested text to be compactly rendered even when styled with borders and padding. Our layout algorithm is evaluated on a benchmark suite comprising representative source code files in multiple programming languages. The (ragged block) layouts produced by our algorithm are substantially more compact than the (rectangular block) layouts produced by conventional techniques, when uniformly styling every element in the syntax tree with borders and padding.
Research Questions / Practical Problems
Question signals indexed for this paper.
- 100%
Table Illustrator: Puzzle-based interactive authoring of plain tables
CHI '24· Interactive Data Visualization +1
- 100%
Unpacking Visual Metaphors in Infographics: A Design Space
CHI '26· Data Storytelling +1
- 100%
HelpViz: Automatic Generation of Contextual Visual Mobile Tutorials from Text-Based Instructions
UIST '21· Interactive Data Visualization +1
- 80%
Exploring Visual Information Flows in Infographics
CHI '20· Interactive Data Visualization +1
- 80%
Pluto: Authoring Semantically Aligned Text and Charts for Data-Driven Communication
IUI '25· Interactive Data Visualization +1
- 75%
Interactive Document Clustering Revisited: A Visual Analytics Approach
IUI '18· Interactive Data Visualization
- 75%
Data-centric disambiguation for data transformation with programming-by-example
IUI '21· Interactive Data Visualization
- 67%
DataToon: Drawing Dynamic Network Comics With Pen + Touch Interaction
CHI '19· Interactive Data Visualization +2
- 67%
SwapVid: Integrating Video Viewing and Document Exploration with Direct Manipulation
CHI '24· Interactive Data Visualization +2
- 60%
What's the Difference?: Evaluating Variations of Multi-Series Bar Charts for Visual Comparison Tasks
CHI '18· Interactive Data Visualization +1
Based on Jaccard similarity of research subtopics & professions (≥60%)