tremor icon indicating copy to clipboard operation
tremor copied to clipboard

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

Open imclint21 opened this issue 1 year ago • 3 comments

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"]}

imclint21 avatar Feb 12 '24 18:02 imclint21

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?

parisosuch avatar Feb 21 '24 17:02 parisosuch

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

imclint21 avatar Feb 25 '24 18:02 imclint21

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.

parisosuch avatar Feb 25 '24 20:02 parisosuch

Hi! This feature is quite an exception from the norm. Imho, this is something we forward to our copy & paste components: https://tremor.so

severinlandolt avatar Aug 28 '24 18:08 severinlandolt