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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.