Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suboptimal Color Selection in Data Visualization #1740

Open
timvonfelten opened this issue Sep 11, 2024 · 1 comment
Open

Suboptimal Color Selection in Data Visualization #1740

timvonfelten opened this issue Sep 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@timvonfelten
Copy link

timvonfelten commented Sep 11, 2024

Describe the bug
The random color selection for data visualization doesn't provide an optimal user experience, especially when displaying multiple categories. Colors may not sufficiently differ, leading to confusion in interpreting the visualization.

To Reproduce:

  1. Access a dataset with multiple entries (e.g., https://test.visualize.admin.ch/create/GnuwGnO1Iu5K?dataSource=Test)
  2. Choose segmentation with "Warenkorb Nummer"
  3. Select all top-level entries (1-13)
  4. Remove all entries except two with the same color
  5. Apply the filter
  6. Observe the resulting visualization with two categories in the same color

Expected behavior

  • When there are fewer categories than color values in the palette, Visualize should automatically assign distinct colors to each category.
  • The "shuffle colors" function should ensure unique colors for each category when possible.
  • Color palettes should offer more options for better differentiation.

Actual Behavior

  • The same colors may be selected for different categories, even with only two categories in the visualization.
  • The "shuffle colors" function doesn't always resolve color conflicts.

Screenshots or video
Bildschirmfoto 2024-09-11 um 10 57 13

Environment:

  • Visualize version: Test v4.7.4 (also reproducible in production)
  • Browser: Brave v1.69.153

Additional context

  • Expanding the color palette options would generally improve visualization capabilities.
  • This issue impacts the clarity and effectiveness of data presentations, especially in scenarios with multiple data segments.
@timvonfelten timvonfelten added the bug Something isn't working label Sep 11, 2024
@KerstinFaye
Copy link

Hi @timvonfelten,
Thank you for your feedback. We're currently working on improving the color selection for charts. We'll provide an update on these improvements soon.

@sosiology sosiology added enhancement New feature or request and removed bug Something isn't working labels Oct 24, 2024
@KerstinFaye KerstinFaye self-assigned this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants