superset icon indicating copy to clipboard operation
superset copied to clipboard

Adding conditional coloring to table chart removes/overwrites cell bars

Open rusackas opened this issue 10 months ago • 2 comments

Bug description

When I have a table chart with cell bars enabled, I should be able to color those bars with conditional coloring. Instead, the bars disappear, and the colors apply to the cell, overwriting the bar.

This could be fixed by either: (a) applying the color to the cell bar (b) using an RGBA gray to transparently place the bar on top of the colored cell.

Also, when I select my column to use for conditional coloring, it does not show the selected column in the Select input.

Screenshots/recordings

https://github.com/user-attachments/assets/44ae4e77-aa6e-4ce3-bd4b-aac7731aa585

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

rusackas avatar Feb 13 '25 17:02 rusackas

I agree, I just ran into this. We were going to use a hacky conditional color rules to force all the cell bars to have the same color other than gray, but like you say once we added that rule it overrode the cell bars.

I vote for:

(a) applying the color to the cell bar

sfirke avatar Mar 19 '25 20:03 sfirke

I like (a) too. I'll leave this open in hopes that someone (including me!) might open a PR. I know I once made the cell bars with CSS, so they should be colorable without much difficulty.

rusackas avatar Jun 11 '25 18:06 rusackas