Optimizing Symbol Visibility through Displacement
Bernd Gärtner, Vishwas Kalani, Meghana M. Reddy, Wouter Meulemans, Bettina Speckmann, Miloš Stojaković
TL;DR
This work initiates algorithmic study of optimizing symbol visibility under constrained displacement: placing $n$ unit square symbols at fixed $y$-coordinates inside a width-$w$ strip ($1<w\le 2$) to maximize the minimum visible perimeter (gap) via both x-displacement and drawing order. It provides tight bounds and efficient constructions in two regimes: (i) when $w,h\le 2$, all squares are stabbed by a point and staircase layouts can achieve the supremum gap up to an arbitrarily small $\delta$ in $O(n\log n)$ time, with the gap characterized by a linear program solvable by a water-filling method; (ii) when $w\le 2$ with arbitrary height, a vertical-line stabbing enables a $2$-approximation in $O(n\log n)$ time using a squeezing algorithm that partitions by height and recombines, with a zigzag layout proven asymptotically optimal for uniformly spaced $y$-coordinates. These results advance understanding of controlled symbol displacement to improve readability in information visualization and point to several avenues for future work, including extending to rectangular or variably sized symbols and improving theoretical bounds in the uniform-spacing regime.
Abstract
In information visualization, the position of symbols often encodes associated data values. When visualizing data elements with both a numerical and a categorical dimension, positioning in the categorical axis admits some flexibility. This flexibility can be exploited to reduce symbol overlap, and thereby increase legibility. In this paper, we initialize the algorithmic study of optimizing symbol legibility via a limited displacement of the symbols. Specifically, we consider closed unit square symbols that need to be placed at specified $y$-coordinates. We optimize the drawing order of the symbols as well as their $x$-displacement, constrained within a rectangular container, to maximize the minimum visible perimeter over all squares. If the container has width and height at most $2$, there is a point that stabs all squares. In this case, we prove that a staircase layout is arbitrarily close to optimality and can be computed in $O(n\log n)$ time. If the width is at most $2$, there is a vertical line that stabs all squares, and in this case, we design a 2-approximation algorithm (assuming fixed container height) that runs in $O(n\log n)$ time. As it turns out that a minimum visible perimeter of 2 is always achievable with a generic construction, we measure this approximation with respect to the visible perimeter exceeding 2. We show that, despite its simplicity, the algorithm gives asymptotically optimal results for certain instances.
