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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Vivdroid_C_4222
Frequent Visitor

How can I text wrap y axis on a Bar Chart?

If its not possible is there any free visual in the marketplace that allows you to text wrap y axis in Power Bi?

Or is there a way to insert the values shown in y axis inside the bar chart?
 
6 REPLIES 6
v-hjannapu
Community Support
Community Support

Hi @Vivdroid_C_4222 ,

Thank you  for reaching out to the Microsoft fabric community forum.

In Power BI, the default bar chart doesn't support automatic text wrapping on the Y-axis, which can cause long category names to be cut off.
you may work around this by creating a new column using a DAX formula.

Wrapped Product Name = SUBSTITUTE([Product Name], " ", UNICHAR(10))


After creating new column, replace the original Product Name in the Y-axis with this new Wrapped Product Name.
Then, go to the Format pane and reduce the text size under the Y-axis settings, and adjust padding under General > Properties section to make the labels easier to read.

I tested it with my sample data, and it worked fine. Please find the attached screenshot and Pbix for your reference.

vhjannapu_0-1749791797933.png
If this answer was helpful and pointed you in the right direction, please consider accepting it as solution and kindly give a kudos it will benefit other community members in the community. If you have any further questions, feel free to let us know.

Regards,
Harshitha.
Community Support Team.

The entire values are not visibile in Mobile Layout from the above approach

 

Hi @Vivdroid_C_4222 ,
Thanks for getting back. I'm glad to help.
If you want the product names displayed in full text, place the product name on the X-axis and the sum of sales on the Y-axis. This will allow you to see the full text of the product names.

Although this solution works in Power BI Desktop, it may not completely meet your requirement of displaying all values. Still, it’s a valuable idea. I encourage you to share this feedback through Microsoft Fabric Ideas forum , where the product team regularly reviews user suggestions for future enhancements.

Thank you.

Hi @Vivdroid_C_4222 ,
Could you please confirm if you've submitted this as an idea in the Ideas Forum? If so, sharing the link here would be helpful for other community members who may have similar feedback.

If we don’t hear back, we’ll go ahead and close this thread. For any further discussions or questions, please start a new thread in the Microsoft Fabric Community Forum  we’ll be happy to assist.

Thank you for being part of the Microsoft Fabric Community.

Vivdroid_C_4222
Frequent Visitor

@Nasif_Azam  You just copy pasted the above response from Chat Gpt. 

The above sources are not free

Nasif_Azam
Super User
Super User

Hey @Vivdroid_C_4222 ,

In Power BI, the default bar chart does not support text wrapping on the Y-axis (which is typically the axis showing categorical values when you use a horizontal bar chart). However, here are a few practical alternatives:

1. Use a Horizontal Bar Chart + Manual Line Breaks

  • If you switch to a horizontal bar chart, the axis labels become the Y-axis.

  • You can manually add line breaks in your category labels using UNICHAR(10) in a calculated column:

Wrapped Label = SUBSTITUTE([YourCategoryColumn], " ", UNICHAR(10))

Then use this Wrapped Label field instead. This only works well if your visual has sufficient vertical space. Adjust padding and font size for readability.

 

2. Use Third-Party Visuals from AppSource

Some free custom visuals offer enhanced formatting features:

  • Inforiver Charts (Free version) – allows text wrapping and rich formatting.

  • xViz Bar Chart – supports text wrapping and more control over axis formatting.

  • Deneb (Advanced, but highly customizable with Vega-Lite) – you can manually define axis label wrapping.

To add one:

  1. Go to Power BI Desktop

  2. Click "Get more visuals"

  3. Search and import e.g., "xViz Bar Chart" or "Inforiver"

 

3. Show Values Inside the Bars

To insert Y-axis values (category names or data labels) inside the bars:

  • Use the "Data labels" option in the formatting pane.

  • Enable "Inside End" or "Inside Center" for label position.

  • This only works well for horizontal bar charts with sufficient bar length.

If the label is too long, consider abbreviating the name or applying the manual wrap technique described above.

 

Nasif_Azam_0-1749749005337.png

 

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam



Did I answer your question?
If so, mark my post as a solution!
Also consider helping someone else in the forums!

Proud to be a Super User!


LinkedIn

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors