GitHub user dosubot[bot] added a comment to the discussion: Login redirection does not use subpath prefix
<!-- Answer --> There are two main ways to customize colors for bar charts in Superset: **1. Via the Chart UI — Color Scheme selector** In the chart configuration panel under **"Chart Options"**, there's a **Color Scheme** dropdown where you can pick from available palettes [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/sharedControls.tsx#L330-L339). These are grouped into Custom, Featured, and Other categories with visual previews [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/explore/components/controls/ColorSchemeControl/index.tsx#L224-L240). **2. Define a custom color palette in `superset_config.py`** Add `EXTRA_CATEGORICAL_COLOR_SCHEMES` to create your own palette that appears in the Color Scheme dropdown [[3]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L660-L671): ```python EXTRA_CATEGORICAL_COLOR_SCHEMES = [ { "id": "my_custom_colors", "description": "", "label": "My Custom Colors", "isDefault": True, "colors": [ "#006699", "#009DD9", "#5AAA46", "#44AAAA", "#DDAA77", "#7799BB", "#88AA77", "#552288" ], } ] ``` After adding this, restart Superset and the palette will be available in all chart Color Scheme selectors. **3. Assign specific colors to specific series (label colors)** At the **dashboard level**, you can assign fixed colors to specific labels/series. The dashboard metadata stores `label_colors` mappings that override the default color scheme for specific values [[4]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/utils/colorScheme.ts#L218-L222). This is done via the dashboard's JSON metadata and ensures a specific series always gets the same color across all charts in that dashboard. The color priority is: custom label color → shared label color → color scheme default [[5]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-core/src/color/CategoricalColorScale.ts#L122-L170). <!-- 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=7aee879e-d21b-4f97-b8db-275b04d76e90) [](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/40082#discussioncomment-17435454 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
