Imagine you have a widget visualizing a certain KPI, and you want to allow your users to be directed to another webpage by clicking on a data point in that widget: our Go-to-URL feature allows you to easily set this up, check the example dashboard embedded below to see an example of the result!

In our minimalistic example dashboard, we can see the population density per continent and country in two different widgets. As we want to reference Wikipedia's content to provide our users more information about a specific continent (or a specific country's continent) shown in the widget, we used the Go-to-URL feature to dynamically inject data into a specific URL. Are you curious to find out how to achieve this interactivity yourself? 👀

Activation

In our dashboard editor, the Go-to-URL option can be found underneath the ‘Interactivity’ section in the settings of the chart. When toggling on this feature, a modal opens where you can enter your desired link to redirect your end users. In here, you can optionally inject dynamic values from the selected data point in the widget itself, or even include aggregated results from columns that are not used in the widget's slots. When clicking on the "Save" button in the Go-to-URL modal, you can immediately click on a specific data point in your widget to quickly test your Go-to-URL setup!

In the example above, you can see how we set up the Go-to-URL functionality for the column chart in the example dashboard embedded at the top of this article; in there, we're dynamically appending the "Category" slot value (i.e. the Continent name) at the end of the URL to open the appropriate Wikipedia page.

As we also wanted to allow our users to gain more information about a specific country's continent in our Spike map widget, but as our Spike map does not reference the Continent column directly, we included this column by using the "Add column" button and selecting the "Minimum" aggregation to get its value. More information about using additional columns can be found in this Academy article! Note: as each country only belongs to a single continent, using the "Minimum" or "Maximum" aggregation will return the same result.

Tips and tricks

  • There are three ways the URL can open: in the same window, in a new window or in the parent. You can change this in the ‘Interactivity’ section as well, once you've set up your go-to-url functionality.
  • For a more flexible embedding of the dashboard into your parent application, we'd instead recommend looking into our Custom events feature; this allows you to listen to an event that is emitted when a user clicks on a specific data point. You could then implement any interactivity and actionability using that data, e.g. open a modal in your application with more details, prefill a specific form based on the data, etc.

Need more information?

Do you still have questions? Let us know how we can help.
Send us feedback!