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
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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors