Abstract
In order to ensure the visual effect and unity of color mapping of multi-charts among the data with the same category, it is proposed to study the color assignment optimization problems on multi-charts, which introduces a score defined based on perception and harmony to guide the joint color assignment optimization. When given the data plotted with multi-charts and the color palette, first the quality of the color palette is evaluated. If the color palette is of high quality, the proposed method will directly optimize the color assignment. Otherwise, the color palette needs to be optimized first. Several user studies are conducted to show that the proposed method can ensure the unity of multi-charts color mapping and improve the quality of visualization results.
Introduction
Maintaining visual consistency across dashboards containing multiple charts (e.g., a bar chart alongside a pie chart) is a significant challenge in data visualization. Ideally, a specific data category should retain the same color across all views. However, standard color assignment—often based on the order of appearance in a palette—frequently fails. This failure manifests in two ways: perceptual indistinguishability, where colors are too similar or too small to be seen, and aesthetic disharmony, where colors clash in specific geometric arrangements. This paper, published in the Journal of Computer-Aided Design & Computer Graphics (2021), addresses these issues by optimizing color assignment across multiple related charts simultaneously.
Methodology
The proposed framework treats color selection as an optimization problem guided by a dual-metric score balancing Perception and Harmony. Perception is modeled using the CIEDE2000 formula to maximize the "distance" between colors of adjacent categories. Harmony is calculated using the Ou et al. model, which considers differences in hue, chroma, and lightness.
The optimization follows a two-stage asynchronous process:
- Palette Optimization: If the initial palette is suboptimal, a Genetic Algorithm (GA) refines the saturation and lightness of colors while maintaining hue stability.
- Color Assignment: A second GA assigns colors to data categories based on geometric constraints extracted from the charts.
Geometry-Aware Optimization
A key contribution of this work is the extraction of geometric constraints from the charts themselves. The system identifies adjacency (categories that are neighbors in any chart) and area (the relative size of data segments).
By aggregating these constraints, the algorithm can prioritize "Small Slices"—ensuring that tiny segments in a pie chart receive high-contrast colors to remain visible. This geometry-aware approach ensures that the color mapping works universally across the entire dashboard, regardless of how the data is distributed in individual charts.
Results and User Evaluation
The effectiveness of the framework was validated through four user studies involving 20 participants. The results demonstrated a clear preference for the optimized outputs:
- 77% of users preferred optimized versions over low-scored ones.
- 68% of users preferred the optimized assignment over standard software defaults (like Tableau).
- 81% of users preferred charts using optimized palettes over the original low-quality inputs.
The study confirmed that optimizing the palette and assignment separately is more effective than simultaneous optimization, which often fails to converge due to the complexity of the search space.
Limitations and Future Directions
While effective, the current model has limitations. It does not yet account for semantic color meanings (e.g., red for "danger"), which can conflict with purely mathematical optimization. Additionally, the system focuses on area and adjacency but ignores other visual elements like grid lines or text labels. Future work will explore more robust optimization techniques to improve performance and stability, as well as the interaction between colors and complex backgrounds.
Summary updated