面向数据可视化的清晰标签布局:算法及其在 Vega-Lite 中的集成
Legible Label Layout for Data Visualization, Algorithm and Integration into Vega-Lite
AI总结:
本文提出基于占用位图的标签放置算法以加速重叠检测,解决大量数据点标签布局效率低的问题,并将其作为标签编码通道集成到 Vega-Lite 中,在保持标签数量相近的同时显著提升性能。
摘要:
清晰的标签不应与图表中的其他标签和其他标记(marks)重叠。当图表包含大量数据点时,为图表中的每个数据点手动放置这些标签是一项繁琐的任务。因此,需要一种标签布局算法来自动为包含大量数据点的图表布置标签。当前最先进的标签布局算法使用一组点来近似每个标记的形状以检测重叠。这种方法对于大型标记或大量标记而言效率低下,因为它需要过多的点来检测重叠。针对这一问题,我们提出了一种基于位图的标签放置算法,该算法利用占用位图(occupancy bitmap)来加速重叠检测。为了创建占用位图,我们根据标记在图表中占据的区域将标记栅格化到位图上。借助该位图,无论标记的数量和几何复杂度如何,我们都能高效地放置标签而不与现有标记重叠。这种基于位图的算法在放置相似数量标签的同时,相比最先进的方法提供了显著的性能提升。我们还将该算法作为其编码通道之一——标签编码(label encoding)——集成到 Vega-Lite 中。标签编码允许用户用文本标签对每个数据点中的字段进行编码,以标注图表中表示该数据点的标记。
英文摘要:
Legible labels should not overlap with other labels and other marks in a chart. When a chart contains a large number of data points, manually positioning these labels for each data point in the chart is a tedious task. A labeling algorithm is necessary to automatically layout the labels for a chart with a large number of data points. The state-of-the-art labeling algorithm detects overlaps using a set of points to approximate each mark's shape. This approach is inefficient for large marks or many marks as it requires too many points to detect overlaps. In response, we present a bitmap-based label placement algorithm, which leverages an occupancy bitmap to accelerate overlap detection. To create an occupancy bitmap, we rasterize marks onto a bitmap based on the area they occupy in the chart. With the bitmap, we can efficiently place labels without overlapping existing marks, regardless of the number and geometric complexity of the marks. This bitmap-based algorithm offers significant performance improvements over the state-of-the-art approach while placing a similar number of labels. We also integrate this algorithm into Vega-Lite as one of its encoding channels, label encoding. Label encoding allows users to encode fields in each data point with a text label to annotate the mark that represents the data point in a chart.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。