Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
MPetramalo51
Frequent Visitor

Color by Group in Properties

Hi all, 

 

Apologize if this question is elementary, I'm new to developing custom visuals, and I'm struggling adding color options for each data group. 

 

I'm currently developing a chord diagram, and I've got the diagram built out in d3, and it shows up in Power BI fine.  But I'm trying to now add the ability for users to pick colors, instead of me just having a list of colors hard coded, or random colors from the color pallette. 

 

I've been trying to do some research online, but I'm finding what looks like some outdated stuff from a few years ago and its hard to tell what I'm supposed to do.  

 

Currently: I've just hardcoded a bunch of colors since I'm working with dummy data. 

MPetramalo51_0-1678483880696.png

Goal: Goal being for each group, be able to select a color.  I cant figure out how to iterate over the list of values, and have them show up on the property pane.

MPetramalo51_1-1678484048273.png

 

0 REPLIES 0

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.