dosubot[bot] commented on issue #33115:
URL: https://github.com/apache/superset/issues/33115#issuecomment-2800029161

   <!-- Greeting -->
   Hello @rudokemper! I'm [Dosu](https://dosu.dev), a bot here to help you 
solve bugs, answer questions, and guide you in becoming a contributor. I'm 
ready to assist you while you wait for a human maintainer.
   
   <!-- Answer -->
   In Superset version 4.1.2, the color assignment logic for pie charts 
involves several steps, including checking for a dashboard color scheme, 
maintaining shared and custom label colors, and mapping unique labels to 
colors. If there are more unique values than available colors, the system 
recycles colors, which might be causing the issue you're experiencing 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/actions/dashboardState.js)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/test/color/CategoricalColorScale.test.ts)</sup>.
   
   To address this, ensure that your dashboard or chart is not inadvertently 
using a limited color scheme. You can specify a different color scheme in the 
`formData` object to see if it resolves the issue:
   
   ```javascript
   formData={{
     colorScheme: 'supersetColors', // or another available scheme
     // other properties
   }}
   ```
   
   Additionally, check if the `UseAnalogousColors` feature flag is enabled, as 
it can generate analogous colors to expand the available color range 
<sup>[[3]](https://github.com/apache/superset/blob/master/superset-frontend/src/utils/colorScheme.ts)</sup>.
 If the issue persists, it might be related to a bug in the color assignment 
logic, as noted in the GitHub issue you referenced.
   
   
   <!-- 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/0a68101f-0c1a-4cf2-8f25-3716bfa977c9?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/0a68101f-0c1a-4cf2-8f25-3716bfa977c9?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/0a68101f-0c1a-4cf2-8f25-3716bfa977c9?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/0a68101f-0c1a-4cf2-8f25-3716bfa977c9?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0a68101f-0c1a-4cf2-8f25-3716bfa977c9?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/0a68101f-0c1a-4cf2-8f25-3716bfa977c9?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0a68101f-0c1a-4cf2-8f25-3716bfa977c9?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: [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]

Reply via email to