Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
hobbykitjr
New Member

AddToolTip Method

 

 

        this.tooltipServiceWrapper.addTooltip(chart.selectAll('.bar'),
        (datapoint:unknown)=> Visual.getTooltipData(0),
        null);

 

 


I successfully display a 'static' tooltip as a PoC, by not using a selectorId, and hard passing 0, and passing static values back (for now):

 

 

    private static getTooltipData(value: any): VisualTooltipDataItem[] {
        return [{
            displayName: "test",//value.category,
            value: "55"//value.value.toString()//,
            // color: value.color,
            // header: "display"
        }];
    }

 

 

 

This should prove everything else is set up correctly, My question is, whenever i try to use real dynamic data, the tooltop disapears and i can't seem to see anything wrong. I noticed the documentation is wrong (the example they show would not work, use my example instead) and missing  (clicking link on this page shows 404)..

 

But browing the source: It looks like i need to create a custom interface, and then manually push the array w/ my data? And generate a selecitonID? 

 

Is there any documentation going over all of that? thanks,

0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.