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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kaushal12
New Member

Clustered bar graph

Hello, can anyone help me create a custom clustered bar graph or let me know if it already exist

1 REPLY 1
dm-p
Super User
Super User

I'm working on one, but it's nowhere near ready for sharing or publication yet. I'll open-source it when ready but it's probably a month or so off doing that at the moment.

I started with the sample bar chart and then used this d3 example to make mine work. You'll need an extra field in your dataRoles to work with, and you'll need two x-axes for the clustered bars: one to manage the clustering (category) and one that works inside that to position the series/legend field values. It's all in the example but those are thekey differences to consider vs. the sample bar chart.

Alternatively, you could use this Vega-Lite example and build everything using JSON and your data rather than using d3, if you need something more straightforward.

Good luck!

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.