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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
davem145
New Member

Custom Visual - How to create word wrap text labels on a chart

Dear Forum,

 

I am creating my own custom visual and would like to wordwrap the data labels on a chart. I have been able to display labels returning textMeasurementService.getTailoredTextOrDefault (from the PowerBI formatting utils) but, of course, that truncates long labels with an ellipsis. I was hoping to use textMeasurementService.wordBreakOverflowingText but have not been able to find an example of how to work with that. Can anyone help with an example code snippet please?

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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