dosubot[bot] commented on issue #32693: URL: https://github.com/apache/superset/issues/32693#issuecomment-2727377428
<!-- Greeting --> Hey @DarshanP010! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's tackle this issue together! <!-- Answer --> I found a similar unsolved discussion regarding adding color palettes to charts and dashboards in Apache Superset. You can view it [here](https://github.com/apache/superset/discussions/21335) <sup>[[1]](https://github.com/apache/superset/discussions/21335)</sup>. To address the issue of your custom color palette not appearing in the frontend, ensure that you have followed the correct process for registering new color schemes in the frontend. This involves creating color scheme configurations, instantiating color schemes, and registering them using the appropriate registry functions. You can refer to the detailed steps and code snippet provided in the [setupColors.ts file](https://github.com/apache/superset/blob/master/superset-frontend/src/setup/setupColors.ts) <sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/setup/setupColors.ts)</sup>. Additionally, check if there is a specific order or dependency for loading configuration files that might affect the visibility of new color palettes. The `superset/config.py` file allows configurations to be overridden by a custom `superset_config.py` file, which could impact the loading of your new color palettes <sup>[[3]](https://github.com/apache/superset/blob/master/superset/config.py)</sup>. If the issue persists, consider clearing or refreshing the cache to ensure new configurations are loaded. This can be done using the `cache_manager.cache.clear()` and `cache_manager.data_cache.clear()` methods <sup>[[4]](https://github.com/apache/superset/blob/master/tests/integration_tests/cache_tests.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/e4e1bf35-4ebc-48ea-99d4-2a4b4753f898?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/e4e1bf35-4ebc-48ea-99d4-2a4b4753f898?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/e4e1bf35-4ebc-48ea-99d4-2a4b4753f898?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/e4e1bf35-4ebc-48ea-99d4-2a4b4753f898?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e4e1bf35-4ebc-48ea-99d4-2a4b4753f898?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/e4e1bf35-4ebc-48ea-99d4-2a4b4753f898?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e4e1bf35-4ebc-48ea-99d4-2a4b4753f898?feedback_type=other)</sup> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org