Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48952

Testing Canvas Tooltip and Multiple SelectionIds

$
0
0

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


Viewing all articles
Browse latest Browse all 48952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>