Minimizing Vertical Length in Linked Bar Charts
Steven van den Broek, Marc van Kreveld, Wouter Meulemans, Arjen Simons
TL;DR
This work investigates minimizing the total vertical length of links in linked bar charts with a fixed bar order, focusing on the distinction between dependent and independent links and the resulting impact on readability. It provides algorithmic frameworks that exploit structural properties: when the subgraph of dependent links forms a forest, a dynamic program yields an $O(nm)$ solution, and when non-adjacent dependent links form a forest, the bound becomes $O(n^4m)$; additionally, the problem is fixed-parameter tractable in the maximum degree of a bar. The authors also develop efficient preprocessing for L/R edge sets and link-type classification, enabling constant-time cost evaluations for placements and a component-wise optimization strategy. These results illuminate the tractability frontier for stacked-bar visualizations and offer practical, structure-aware methods for reducing vertical link length in cross-category visualizations.
Abstract
A linked bar chart is the augmentation of a traditional bar chart where each bar is partitioned into blocks and pairs of blocks are linked using orthogonal lines that pass over intermediate bars. The order of the blocks readily influences the legibility of the links. We study the algorithmic problem of minimizing the vertical length of these links, for a fixed bar order. The main challenge lies with ``dependent'' links, whose vertical link length cannot be optimized independently per bar. We show that, if the dependent links form a forest, the problem can be solved in $O(nm)$ time, for n bars and m links. If the dependent links between non-adjacent bars form a forest, the problem admits an $O(n^4m)$-time algorithm. Finally, we show that the general case is fixed-parameter tractable in the maximum number of links that are connected to one bar.
