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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
lucmax
Helper II
Helper II

Custom Visual: Access tooltip type (canvas/default)

Hi,

 

is there a way to access the selected tooltip type within a custom visual?

 

We have added the support using this within the capabilities.json:

    "tooltips": {
        "supportedTypes": {
            "default": true,
            "canvas": true
        },
        "roles": [
            "tooltips"
        ]
    },

The tooltips itself are working perfectly fine but we need to access the informtion, if a report page tooltip or the default ist selected.

 

Regards,

lucmax

5 REPLIES 5
akshaytech9
Regular Visitor

Hello @dm-p @v-viig @nikitagrachev @tzvikei,

 

With the introduction of Modern visual tooltips, is there any way now to access the tooltip type ?

Since the modern visual tooltips are picking the styles from report theme and applying it, I think providing a way also to access the default tooltip formatting option values makes it more beneficial for a custom visual to handle personalizations within the tooltip canvas.

 

Thanks,

Akshay

Hi @akshaytech9 - still no. The 'General' menus are not visible or accessible to custom visuals as any formatting is applied to the container rather than the visual itself.

For reference, the following properties you cannot access (and made more evident with the new property menu changes) are:

dmp_0-1640715953665.png

Any properties you can read/write (specific to your visual capabilities) are now displayed under the Visual tab.

As tooltips are handled by the main window, their only purpose is to display data that you ask the APIs to represent and Power BI will delegate on your behalf. Modern tooltips are combination of the classic and canvas tooltip in terms of how they are implemented: if you want data point-centric features like drill through then you need to supply a valid selection ID for the data point too - like a canvas tooltip - and its display is worked out based on the configuration in the Tooltip property menu.

If you have a case for needing to access these properties, then the previous suggestion of creating an issue in the tools repo can signal to the team that this is a feature you would like to see added. 

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




lucmax
Helper II
Helper II

Hi @v-viig ,

 

is there really no way to get the settings from the standard tooltip pane inside the custom visual?

tooltip pane.png

 

We need the information of the type to either add the selection ids to the tooltip or not, bcause dont want to show the text "Right-click to drillthrough" on the default tooltip.

dm-p
Super User
Super User

Hi @lucmax - unfortunately not. The comms with tooltips is only one-way, i.e. you can only push an array of objects (to invoke default) and/or a selection ID (to try and invoke canvas) and Power BI resolves this based on its knowledge of available tooltip pages in a report. The visual host doesn't pass anything back as to what is actually displayed by the main window.

Suggestion would be to try and request it as a feature in the tools repo if it's something you need.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Hi @dm-p , thanks for the answer, thats unfortunate! I also tried to access the settings from the formatting pane, but I guess I can forget that too.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.