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

[Feature]: Add color override for [bar] charts #969

Open
imclint21 opened this issue Feb 12, 2024 · 3 comments
Open

[Feature]: Add color override for [bar] charts #969

imclint21 opened this issue Feb 12, 2024 · 3 comments
Labels
Type: Feature New feature for existing component

Comments

@imclint21
Copy link

What problem does this feature solve?

Would be nice to have the possibility to specify a specific color for an item in the [bar] chart, by example would be nice to have some bar here in red:

image

What does the proposed API look like?

colorOverride={[{"item1": "red"]}
@severinlandolt severinlandolt added the Type: Feature New feature for existing component label Feb 19, 2024
@parisosuch-dev
Copy link

I second this idea. In what context is the item. Is that a specific value on the x-axis or a specific value range on the y-axis.

I for one would want a feature that can color a bar based on another property in a data point.
For example, you are given a list of data points that contain the execution time, the date, and the pass/fail of that execution. The bar would be colored based on the pass/fail. Would this be different than your proposed idea?

@imclint21
Copy link
Author

Not really, I just want the ability to change some bars depending of some conditions.

@parisosuch-dev
Copy link

Not really, I just want the ability to change some bars depending of some conditions.

I think this is solvable and a great feature. The Override would accept a list of x-axis values what that color should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature for existing component
Projects
None yet
Development

No branches or pull requests

3 participants