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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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

Hi,

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.

https://community.powerbi.com/t5/Desktop/Legend-is-not-allowing-when-in-values-section-two-measures-...

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

https://onedrive.live.com/?authkey=%21AB0-rP7jb9urmHs&cid=C3D44232D04D59CF&id=C3D44232D04D59CF%21115...

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.

1 REPLY 1
v-evelk
Employee
Employee

Hi,

 

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
pbicvsupport@microsoft.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors