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
Capono
Frequent Visitor

Testing Canvas Tooltip and Multiple SelectionIds

Hi, 

I was testing Canvas Tooltips. It works very fine, I was wondering if it is somehow possible to give the tooltips an array of selectionIds instead of a single selectionId.

 

The use case would be a flowchart including edges with source and target that represents an edge/link connecting nodes that include all incoming and outgoing edges. Therefore, when I would hover above a node I would get all information about the in-/outcoming edges. For now, I get only information about each edge by hovering above the edge.

 

 this.tooltipServiceWrapper.addTooltip(this.barContainer.selectAll('.bar'),
                (tooltipEvent: TooltipEventArgs<BarChartDataPoint>) => this.getTooltipData(tooltipEvent.data),
                (tooltipEvent: TooltipEventArgs<BarChartDataPoint>) => tooltipEvent.data.selectionId
            );

As seen in the code there is given only one selectionId. I have tried to put an array of selectionIds in but it does not react. Is there a possibility to aggregate an array of selectionIds.


With Regards

1 REPLY 1
v-viig
Community Champion
Community Champion

Canvas Tooltip does not support SelectiondId array as per design.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

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.

Top Kudoed Authors