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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Zubair_Muhammad
Community Champion
Community Champion

Hide Collided Data Labels

Hi,

 

Power BI's native visuals (such as column chart) hide or shift the data labels very intelligently when they detect a collision.
hide.png
I want to implement the same in a custom visual, but don't seem to find any practical example

 I believe it has something to do with chartutils' ....dataLabelManager.hideCollidedLabels function as shown in image below
But I dont know how to implement this. For example what is lableLayout.

Could you guide me ?

CollidedLabels.png



Regards
Zubair

Please try my custom visuals
1 REPLY 1
italodoliva
New Member

Hello, Zubair,

 

I'm wondering if you found an practical example of the hideCollideLabels implementation? I'm building a custom scatterplot and I want the category labels to rearrange in order not to overlap.

 

Regards,

Italo

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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