You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:14:10 UTC
Re: [D] Custom Color Selector for each line or bar [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Custom Color Selector for each line or bar
<!-- Greeting -->
Hi @pparth2302! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
Yes, you can assign specific colors to your OEE status values! The best approach is using **dashboard-level label colors**.
When you add your Gantt chart to a dashboard, edit the dashboard and go to **JSON Metadata** in the dashboard settings. Add a `label_colors` configuration like this:
```json
{
"label_colors": {
"Running": "#00AA00",
"Down": "#FF0000",
"Changeover": "#FFAA00"
}
}
```
This [takes precedence over the default color scheme](https://github.com/apache/superset/discussions/31855#discussioncomment-11839699) and will consistently apply Green for Running, Red for Down, and Yellow for Changeover across your charts.
Alternatively, you can [define a custom color palette in `superset/config.py`](https://github.com/apache/superset/discussions/37040) using `EXTRA_CATEGORICAL_COLOR_SCHEMES` if you want a reusable palette, but the dashboard metadata approach is simpler for your specific use case.
One caveat: [per-value color mapping through the chart UI itself is limited](https://github.com/apache/superset/issues/33836#issuecomment-2989492653), so the dashboard-level approach is currently the most practical solution without custom code.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=4b192d8a-f583-4564-a68c-c0ca7b74071a) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/38363#discussioncomment-15987660
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org