Forum Discussion
Get color codes from visual
Hi,
When I create a visual Power BI is automatically assigning colors for each of my categories:
I need to obtain the mapping of each color code to the category as it is displayed visual above.
How would that be possible?
Thank you!
Hi MaxxUser1980
Thank you for reaching out to the Microsoft Fabric Community Forum.
Regarding the extraction of color codes and mapping them to categories from the provided pie chart visual, please follow these steps:
1. Navigate to the Visualizations pane and then select the pie chart, then click the "Format Visual" icon .
Expand slices in visual pane.
2. Under "Slices colors," click the dropdown next to each category and click on more colors then manually input the HEX codes .Enter the HEX code (e.g., #1F77B4 for "Verlängerung") directly into the HEX field provided. Press Enter or click OK to apply the color.
Example category and Hex Codes for reference
Adjust the colors if Power BI auto-assigns differently, ensuring they match the visual you provided.
If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.Thank You!
4 Replies
- v-karpurapudCommunity Support
Hi MaxxUser1980
Thank you for reaching out to the Microsoft Fabric Community Forum.
Regarding the extraction of color codes and mapping them to categories from the provided pie chart visual, please follow these steps:
1. Navigate to the Visualizations pane and then select the pie chart, then click the "Format Visual" icon .
Expand slices in visual pane.
2. Under "Slices colors," click the dropdown next to each category and click on more colors then manually input the HEX codes .Enter the HEX code (e.g., #1F77B4 for "Verlängerung") directly into the HEX field provided. Press Enter or click OK to apply the color.
Example category and Hex Codes for reference
Adjust the colors if Power BI auto-assigns differently, ensuring they match the visual you provided.
If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.Thank You!
- v-karpurapudCommunity Support
Hi MaxxUser1980
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
- v-karpurapudCommunity Support
Hi MaxxUser1980
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you. - v-karpurapudCommunity Support
Hi MaxxUser1980
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.