Set up a hover over interaction

Contents[Hide]

1. Overview

This article shows you how to set up a hover over interaction so that a second dashboard is displayed in a popup and filtered accordingly when you hover over a data point on the first dashboard.

Related video: Interactions

2. Create the first dashboard

Create a metric set and add it to a dashboard in order to show OrderQty by Product.

Dashboard 1 with bar chart showing OrderQty by Product
Dashboard 1 with bar chart showing OrderQty by Product

3. Create a second dashboard

Create another metric set and add it to a second dashboard in order to show OrderQty by Date. This dashboard will be displayed in a hover over / popup. The chart in this dashboard is further filtered by Product by adding the corresponding hierarchy under Slicers.

Besides the chart, also add a data label control and drag the second metric set's Product hierarchy onto the data label. This data label will be used to display the slicers (filter) value.

Dashboard 2 with line chart showing OrderQty by Date and filtered by Product
Dashboard 2 with line chart showing OrderQty by Date and filtered by Product

Next, expand the Parameters window which is docked along the bottom of the screen. Click Add New to add a new view parameter and then connect it to the Product hierarchy for both the chart and the data label.

Add a view parameter
Add a view parameter

4. Set up the hover over interaction

Edit the first dashboard again. Right click over the bar chart and click Set Up Interactions from the menu.

Right click and select Set Up Interactions
Right click and select Set Up Interactions

Click Hover Over.

Click Hover Over
Click Hover Over

In the Set up a pop-up dialog, select Dashboard 2 as the different view to be displayed on hover-over.

Select Dashboard 2 to be displayed in a different view
Select Dashboard 2 to be displayed in a different view

Scroll further down and set the Width (of the popup) to 500 and the Height to 375.

Set the width and height of the popup
Set the width and height of the popup

Note
The option Use Accelerated Rendering significantly speeds up the appearance of the popup, but may require a change in related scripts if applicable. For example, with this option enabled, the method action.getPopupContext() will have to be replaced with action.getPopupCanvasAdapter().

Click Set up parameters.

In the Set up Parameter Mappings dialog, click Add new mapping.

Add new mapping
Add new mapping

In the Source list, select the ProductID filter checkbox. In the Target list, select viewParameter1. This forms a mapping so that when the user hovers over a data point (Product) on Dashboard 1, the corresponding product value will be passed to the view parameter on Dashboard 2. Since the view parameter is hooked up to the Product slicers hierarchy, the line chart on Dashboard 2 will be filtered accordingly when it is displayed in a popup.

Select a source and target for the mapping
Select a source and target for the mapping

5. Test the interaction

Switch to View mode and hover over a data point (Bikes product) on Dashboard 1. You should see Dashboard 2 displayed in a popup that shows OrderQty by Date filtered by the product in question.

Test the hover over in View mode
Test the hover over in View mode

6. See also

Dundas Data Visualization, Inc.
400-15 Gervais Drive
Toronto, ON, Canada
M3C 1Y8

North America: 1.800.463.1492
International: 1.416.467.5100

Dundas Support Hours:
Phone: 9am-6pm, ET, Mon-Fri
Email: 7am-6pm, ET, Mon-Fri