Creating a mouseover help text popup

This recipe shows how you can create a pop-up screen that is activated by making the mouse hover over a certain area of the dashboard. This can be handy if you want to add some minor information on a specific part of a dashboard.

Getting ready

No specific preparation is needed for this recipe. You can use any dashboard you already created or just start with an empty one. In this example, we are reusing the dashboard we created in the previous two recipes.

How to do it...

  1. Drag a Chart component (for example, a Pie Chart component) into the canvas. If you are using an existing dashboard, you can use one of the components of your dashboard instead.
  2. Drag a Label component found in the Selectors category into the canvas and enter the text you want to show.
  3. Go to the properties pane of this Label component. Select the Appearance tab and select the Show Fill option.
  4. Now, select the Show Border option and set Border Thickness to 2:
    How to do it...
  5. Move the Label component over the chart:
    How to do it...
  6. Now drag a Toggle Button component, found in the Selectors category, into the canvas and position it on top of the title of the chart you added to the canvas in step 1. Resize it so that it covers the total area above the chart, as shown in the following screenshot:
    How to do it...
  7. In the Toggle Button properties pane, go to the General tab. Bind Destination to spreadsheet cell H1:
    How to do it...
  8. Insert value 0 into cell H1:
    How to do it...
  9. Now go to the Behavior tab. Under Interaction Options in the Common menu, change Mouse Click to Mouse Over:
    How to do it...
  10. Now go to the Appearance tab and set the Transparency to 100% under the Layout menu:
    How to do it...
  11. Also, under the Text menu within the Appearance tab, deselect the Show Labels option. Now the component won't be visible anymore on the canvas:
    How to do it...
  12. To finish this recipe, we have to set up the Dynamic Visibility functionality for the Label component. First, select the Label component. Go to the Behavior tab in the properties pane. Within the Dynamic Visibility section, bind the Status field to spreadsheet cell H1. Also put value 1 into the Key field:
    How to do it...
  13. Now your dashboard is ready to be tested. Hit the Preview button and see what happens!
    How to do it...

How it works...

For this recipe, we used the Toggle Button functionality in combination with Dynamic Visibility. Also, instead of clicking on Toggle Button to activate it, we switched the insertion trigger from Mouse Click to Mouse Over. If you run the dashboard and make the mouse hover over the area covered by Toggle Button, it will insert value 1 into spreadsheet cell H1. This cell triggers Dynamic Visibility of the Label component that will now appear.

If you go to the properties pane of the Toggle Button component, you can set Source Data, which is in the General tab. Here, you can define which values should be put into the Destination cell:

How it works...

The following screenshot shows the Source Data table:

How it works...

Note

Keep in mind that if you cover a certain section of your dashboard with a Toggle Button component to evoke the Mouse Over activation, the interactivity options of the underlying components cannot be activated by the user anymore as Toggle Button is blocking it!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset