Showing results for 
Search instead for 
Did you mean: 
Not applicable

Custom visual for Clustered Bar chart to have more than one measure with Legend


I have a requirement wherein I need to show comparison between two measures using a clustered bar chart.

The category column (on X axis) is required to be part of Legend as there is a custom color scheme being followed throughout the application in which the report will be integrated.

The clustered bar chart doesnt give an option of adding more than one column when Legend is being used.

I am trying to create a custom clustered bar chart and using the sampleBarChart code available below.

I am new to d3 can anyone help me understand what properties in which file I need to change to be able to use more than one column in measure values with using Legend.

v-evelk Senior Member
Senior Member

Re: Custom visual for Clustered Bar chart to have more than one measure with Legend



1. I notified the Clustered Bar Chart team about your request so they will consider it and will probably added in the next releases.


2. To handle a backet limits you need to edit conditions section in capabilities.json.

There is a documentation page where you can find how to manage conditions.


Kind Regards,


Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals

Helpful resources

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 293 members 2,986 guests
Please welcome our newest community members: