Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I would like to add tooltips to a custom visualization I am currently working on. i have been reading:
But It seems to me the tooltipservice has a dependency to the d3 library, but my visualization doesn't use d3, it's more like an advanced label.
interface ITooltipServiceWrapper { addTooltip<T>(selection: d3.Selection<any>, getTooltipInfoDelegate: (args: TooltipEventArgs<T>) => VisualTooltipDataItem[], getDataPointIdentity?: (args: TooltipEventArgs<T>) => ISelectionId, reloadTooltipDataOnMouseMove?: boolean): void; hide(): void; }
Can I use the Tooltipservice without d3? If so can you pintpoint me to a basic example of adding tooltips to a visualization without d3?
Kind regards Erik
Solved! Go to Solution.
We don't have any basic sample but we would recommend to take a look at how TooltipUtils work with TooltipService directly.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hi @Anonymous,
You're right. TooltipService from TooltipUtils depends on d3v3.
Tooltip API can be used directly by firing move, show, hide methods of internal TooltipService.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thanks, is there any sample code available that shows ho to call these methods directly from a custom visual?
We don't have any basic sample but we would recommend to take a look at how TooltipUtils work with TooltipService directly.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |