Dashboard overrides Chart color schema selected #30562
Replies: 4 comments
-
To ensure that the colors originally chosen in Superset charts are respected within the dashboard, avoid selecting a color palette in the Additionally, you can use the
Example: {
"label_colors": {
"metric_1": ["#FF0000", "#00FF00"],
"metric_2": ["#0000FF", "#FFFF00"]
}
} This approach allows you to define specific colors for each chart without duplicating metrics [2]. |
Beta Was this translation helpful? Give feedback.
-
I added a bit of analysis to the slack thread, the code is a bit convoluted around colour maps here but I suspect this could be implemented with a change to the structure of Maybe that will help someone have a go at implementing this (I may give it a go if I have some spare time). |
Beta Was this translation helpful? Give feedback.
-
I had a bit of a go at this but it looks like it'll require more structural changes than I first thought: giftig@186f7ac I've managed to have the That means it'd probably require several more structural changes to accomplish this and may need a SIP to decide the best way to go about that. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I’m working with some visualizations in Superset and I’d like to share an issue I’m facing.
My client wants the charts to have specific colors, changing only one filter (type = day and type = night). As a result, I have two charts that use the same metrics but have different where clauses and color schemes.
When I add the charts to the dashboard, the colors aren’t respected, even when I don’t select a color scheme in the dashboard. Additionally, the same metrics are displayed with the same color across both charts.
To achieve what my client asked for, I had to duplicate the metrics with different names and declare the colors in the dashboard’s JSON, forcing it to behave as desired, but this is far from ideal. Do you have any other approaches in mind?
Is there a way to ensure that the colors originally chosen in the chart are respected within the dashboard?
Could we have something more configurable at the chart level inside the dashboard?
Example:
Beta Was this translation helpful? Give feedback.
All reactions