English

StreamTable: An Area Proportional Visualization for Tables with Flowing Streams

Computational Geometry 2022-03-29 v2 Computational Complexity

Abstract

Let MM be a two-dimensional table with each cell weighted by a nonzero positive number. A StreamTable visualization of MM represents the columns as non-overlapping vertical streams and the rows as horizontal stripes such that the intersection between a stream and a stripe is a rectangle with area equal to the weight of the corresponding cell. To avoid large wiggle of the streams, it is desirable to keep the consecutive cells in a stream to be adjacent. Let BB be the smallest axis-aligned bounding box containing the StreamTable. Then the difference between the area of BB and the sum of the weights is referred to as the excess area. We attempt to optimize various StreamTable aesthetics (e.g., minimizing excess area, or maximizing cell adjacencies in streams). (A) If the row permutation is fixed and the row heights are given, then we give an O(rc)O(rc)-time algorithm to optimize these aesthetics, where rr and cc are the number of rows and columns, respectively. (B) If the row permutation is fixed but the row heights can be chosen, then we discuss a technique to compute an aesthetic (but not necessarily optimal) StreamTable by solving a quadratically-constrained quadratic program, followed by iterative improvements. If the row heights are restricted to be integers, then we prove the problem to be NP-hard. (C) If the row permutations can be chosen, then we show that it is NP-hard to find a row permutation that optimizes the area or adjacency aesthetics.

Keywords

Cite

@article{arxiv.2103.15037,
  title  = {StreamTable: An Area Proportional Visualization for Tables with Flowing Streams},
  author = {Jared Espenant and Debajyoti Mondal},
  journal= {arXiv preprint arXiv:2103.15037},
  year   = {2022}
}

Comments

Preliminary results appeared at the 16th International Conference and Workshops (WALCOM 2022), Jember, Indonesia

R2 v1 2026-06-24T00:37:06.851Z