PrabuSarvesan opened a new issue, #24170: URL: https://github.com/apache/superset/issues/24170
Individual chart color scheme not applied, when we create 2 bar chart with same metric name and added it in a dashboard. #### How to reproduce the bug 1) Create a bar chart with metric name **Count** and color scheme as **Superset Colors**. 2) Create another bar chart with same metric name **Count** and color scheme as **Airbnb Color.** 3) Create a dashboard and add above 2 charts ### Expected results Charts should be displayed in different colors since each chart selected with different color scheme. ### Actual results Both chart display same color scheme. #### Screenshots Chart 1:  Chart 2:  Dashboard:  ### Environment - browser type and version: Google Chrome - Version 113.0.5672.126 - superset version: Latest code from GitHub - node.js version: `v16.18.1` - any feature flags active: No ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [*] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [*] I have reproduced the issue with at least the latest released version of superset. - [*] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Shared label color has been pushed with metric name for 1st chart. **Code snippet:** https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/src/color/CategoricalColorScale.ts#L123 If 2nd chart also have same metric name, then color has been taken from existing shared label color instead specific color scheme. **Code snippet:** https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/src/color/CategoricalColorScale.ts#L115 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
