-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ObsUX][APM] Adjust timeseries charts colors #210749
[ObsUX][APM] Adjust timeseries charts colors #210749
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review @jennypavlova
Those charts use Lens, Lens decided the colors there AFAIK |
💚 Build Succeeded
Metrics [docs]Async chunks
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better and more recognizable
Starting backport for target branches: 9.0 |
## Summary Because of the new order of colors within the list of data vis colors, we need to alternate colors when loading them in sequence in the absence of the definition of series colors overrides. This will avoid confusion between charts that are very close in color. For the same reasons, we might want to review and modify some of the values ascribed to the specific ChartType in `get_timeseries_color.ts` The bug with the charts being the same colors was introduced in this [PR](elastic#207070) BEFORE ![image](https://github.com/user-attachments/assets/e8ba0797-0ae4-429c-8a43-a6688c3d1b12) AFTER ![image](https://github.com/user-attachments/assets/bec05099-7c56-47ea-937a-34b85b953f89) ![image](https://github.com/user-attachments/assets/c38556ec-a8cf-4708-a557-de74ab268f6b) ![image](https://github.com/user-attachments/assets/e7f56647-be11-4453-9e49-9c0df607f728) (cherry picked from commit d6db880)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `9.0`: - [[ObsUX][APM] Adjust timeseries charts colors (#210749)](#210749) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Miriam","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-12T11:24:01Z","message":"[ObsUX][APM] Adjust timeseries charts colors (#210749)\n\n## Summary\r\n\r\nBecause of the new order of colors within the list of data vis colors,\r\nwe need to alternate colors when loading them in sequence in the absence\r\nof the definition of series colors overrides. This will avoid confusion\r\nbetween charts that are very close in color.\r\n\r\nFor the same reasons, we might want to review and modify some of the\r\nvalues ascribed to the specific ChartType in `get_timeseries_color.ts`\r\n\r\nThe bug with the charts being the same colors was introduced in this\r\n[PR](https://github.com/elastic/kibana/pull/207070)\r\n\r\nBEFORE\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e8ba0797-0ae4-429c-8a43-a6688c3d1b12)\r\n\r\nAFTER\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/bec05099-7c56-47ea-937a-34b85b953f89)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/c38556ec-a8cf-4708-a557-de74ab268f6b)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e7f56647-be11-4453-9e49-9c0df607f728)","sha":"d6db8802da215410be9117339b1e2be07bbfb4cd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","Team:obs-ux-infra_services","v9.1.0"],"title":"[ObsUX][APM] Adjust timeseries charts colors","number":210749,"url":"https://github.com/elastic/kibana/pull/210749","mergeCommit":{"message":"[ObsUX][APM] Adjust timeseries charts colors (#210749)\n\n## Summary\r\n\r\nBecause of the new order of colors within the list of data vis colors,\r\nwe need to alternate colors when loading them in sequence in the absence\r\nof the definition of series colors overrides. This will avoid confusion\r\nbetween charts that are very close in color.\r\n\r\nFor the same reasons, we might want to review and modify some of the\r\nvalues ascribed to the specific ChartType in `get_timeseries_color.ts`\r\n\r\nThe bug with the charts being the same colors was introduced in this\r\n[PR](https://github.com/elastic/kibana/pull/207070)\r\n\r\nBEFORE\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e8ba0797-0ae4-429c-8a43-a6688c3d1b12)\r\n\r\nAFTER\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/bec05099-7c56-47ea-937a-34b85b953f89)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/c38556ec-a8cf-4708-a557-de74ab268f6b)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e7f56647-be11-4453-9e49-9c0df607f728)","sha":"d6db8802da215410be9117339b1e2be07bbfb4cd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210749","number":210749,"mergeCommit":{"message":"[ObsUX][APM] Adjust timeseries charts colors (#210749)\n\n## Summary\r\n\r\nBecause of the new order of colors within the list of data vis colors,\r\nwe need to alternate colors when loading them in sequence in the absence\r\nof the definition of series colors overrides. This will avoid confusion\r\nbetween charts that are very close in color.\r\n\r\nFor the same reasons, we might want to review and modify some of the\r\nvalues ascribed to the specific ChartType in `get_timeseries_color.ts`\r\n\r\nThe bug with the charts being the same colors was introduced in this\r\n[PR](https://github.com/elastic/kibana/pull/207070)\r\n\r\nBEFORE\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e8ba0797-0ae4-429c-8a43-a6688c3d1b12)\r\n\r\nAFTER\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/bec05099-7c56-47ea-937a-34b85b953f89)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/c38556ec-a8cf-4708-a557-de74ab268f6b)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e7f56647-be11-4453-9e49-9c0df607f728)","sha":"d6db8802da215410be9117339b1e2be07bbfb4cd"}}]}] BACKPORT--> Co-authored-by: Miriam <[email protected]>
Summary
Because of the new order of colors within the list of data vis colors, we need to alternate colors when loading them in sequence in the absence of the definition of series colors overrides. This will avoid confusion between charts that are very close in color.
For the same reasons, we might want to review and modify some of the values ascribed to the specific ChartType in
get_timeseries_color.ts
The bug with the charts being the same colors was introduced in this PR
BEFORE
AFTER