GitHub user dosubot[bot] added a comment to the discussion: Custom Colour Pallet
<!-- Answer --> The option `"isDefault": True` in your color palette config tells Superset to use that palette as the default color scheme for charts when multiple palettes are available. If you have several palettes defined, the one with `isDefault: True` will be automatically selected unless a different palette is chosen. If no palette has `isDefault: True`, Superset falls back to its standard default palette. You can see this behavior in the Superset config and frontend code that registers and selects the default palette based on this flag [[source]](https://github.com/apache/superset/blob/master/superset/config.py) [[source]](https://github.com/apache/superset/blob/master/superset-frontend/src/setup/setupColors.ts). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b7fafb37-625f-4eb6-b629-ef5247bcbebe?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b7fafb37-625f-4eb6-b629-ef5247bcbebe?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b7fafb37-625f-4eb6-b629-ef5247bcbebe?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b7fafb37-625f-4eb6-b629-ef5247bcbebe?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b7fafb37-625f-4eb6-b629-ef5247bcbebe?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b7fafb37-625f-4eb6-b629-ef5247bcbebe?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b7fafb37-625f-4eb6-b629-ef5247bcbebe?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=The%20option%20%60%22isDefault%22%3A%20True%60%20in%20your%20color%20palette%20config%20tells%20Superset%20to%20use%20that%20palette%20as%20the%20default%20color%20scheme%20for%20charts%20when%20multiple%20palettes%20are%20available.%20If%20you%20have%20several%20palettes%20defined%2C%20the%20one%20with%20%60isDefault%3A%20True%60%20will%20be%20automatically%20selected%20unless%20a%20different%20palette%20is%20chosen.%20If%20no%20palette%20has%20%60isDefault%3A%20True%60%2C%20Superset%20falls%20back%20to%20its%20standard%20default%20palette.%20You%20can%20see%20this%20behavior%20in%20the%20Superset%20config%20and%20frontend%20code%20that%20registers%20and%20selects%20the%20default%20palette%20based%20on%20this%20flag%20%5B%5Bsource%5D%5D%28https%3A//g ithub.com/apache/superset/blob/master/superset/config.py%29%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/blob/master/superset-frontend/src/setup/setupColors.ts%29.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37040) GitHub link: https://github.com/apache/superset/discussions/37040#discussioncomment-15472228 ---- 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]
