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

Use the same color in dashboard's charts from the tags color selection #197

Open
pranav-dev-practo opened this issue Dec 28, 2024 · 2 comments
Labels
a:feature New feature or request

Comments

@pranav-dev-practo
Copy link

Is your feature request related to a problem? Please describe.
When a user creates a tag, he/she needs to pick the color. Can we use the same color while creating charts in the dashboard instead of a random assortment of colors

Describe the solution you'd like
When the user creates a tag/edits the tags color, all the charts in the dashboard should use the same color

Describe alternatives you've considered

Additional context

@pranav-dev-practo pranav-dev-practo added the a:feature New feature or request label Dec 28, 2024
@mark-addams001881
Copy link

Hello, we tried to solve the issue.

This is what we did:

Modified the dashboard chart components to use the colors specified for each tag instead of using a predefined color array. This ensures consistency between tag colors and chart colors.

You can review changes in this commit: mark-addams001881@ee39c72.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

@pranav-dev-practo
Copy link
Author

That was fast, left some comments on the commit. did the AI generate the whole solution? just curious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants