Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a custom visual that is very similar to the native KPI. I want to add tooltips that look standard to it, but I don't use d3, it is just an HTMLElement.
I can go through the installation of d3 and powerbi-visuals-utils-tooltiputils, but I don't think I can get it to work without being able to pass it a d3 element upon selection. And if I try to pass in the HTML target I use, I get the error "Argument of type 'HTMLElement' is not assignable to parameter of type 'Selection<any>'."
Has anybody done this before?
Hello @Anonymous,
It'd be better to use d3 and powerbi-visuals-utils-tooltiputils.
You just have to select your HTMLElement using d3:
d3.select(Your_HTMLElement)
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
5 | |
5 | |
4 | |
4 | |
3 |