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

[Bug] Evolution chart tooltip only shows max 8 colors #22921

Open
4 tasks done
Stan-vw opened this issue Jan 9, 2025 · 2 comments
Open
4 tasks done

[Bug] Evolution chart tooltip only shows max 8 colors #22921

Stan-vw opened this issue Jan 9, 2025 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. triaged

Comments

@Stan-vw
Copy link
Contributor

Stan-vw commented Jan 9, 2025

What happened?

When you have more than 8 lines on an evolution chart and hover over one of the lines, the tooltip will only show colors for the first 8 line items.
Screenshot 2025-01-09 at 3 04 03 PM

What should happen?

Colors should be shown for all line items in the tooltip

How can this be reproduced?

  1. Go to demo.matomo.org
  2. On the dashboard, in the Visits Over Time evolution chart, add 8+ metrics to view
  3. Hover over one of the lines in the chart

Matomo version

5.2.1

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

Chrome

Computer operating system

MacOS

Relevant log output

No response

Validations

@Stan-vw Stan-vw added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jan 9, 2025
@michalkleiner
Copy link
Contributor

At a guess, as the graph also only displays 8 lines, I'd say 8 is the limit and it should not allow to add more.

@randy-innocraft randy-innocraft added Bug For errors / faults / flaws / inconsistencies etc. triaged and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jan 9, 2025
@Stan-vw
Copy link
Contributor Author

Stan-vw commented Jan 9, 2025

The graph actually shows more than 8 lines. Unfortunately most of the lines in that chart/screenshot are just constantly zero, so you can't see them as they overlap. However, there's charts where you would see all 9+ lines.

It might be useful to share this screenshot that shows that the 9th and further lines do actually get assigned colors:
Screenshot 2025-01-10 at 12 12 22 PM
The problem is simply that this color is not shown in the hoverover tooltip.

Just guessing here, but I think it might be because there's only 8 colors available, and from there it starts cycling through the same colors again. On the screenshot above, the last 2 colors visually look identical to the first 2. Unfortunately I don't have a color picker at hand to verify 100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. triaged
Projects
None yet
Development

No branches or pull requests

3 participants