Forum Discussion

Capono's avatar
Capono
Frequent Visitor
8 years ago

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

  • v-viig's avatar
    v-viig
    Community Champion

    Canvas Tooltip does not support SelectiondId array as per design.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]