/
Create Clickable Highcharts/Highmaps
Create Clickable Highcharts/Highmaps
In Highmaps and Highcharts, you can define events that will be triggered when the user clicks in the map/chart. This can be useful to build a drilldown feature.
Use the following method:
public ResultHighchart.OnPointClick onPointClick()
Example:
def chart = api.buildHighchart(definition) chart.onPointClick().triggerEvent(api.dashboardWideEvent("eventName")) .withNameAsEventDataAttr().withCustomEventDataAttr("value") return chart
This allows to refresh an embedded dashboard:
return api.dashboard("embeddedDashboardName") //.setParam("country_name", api.input("Country")) //.setParam("country_revenue", api.input("Revenu")) .showEmbedded() .andRecalculateOn(api.dashboardWideEvent("eventName")) .withEventDataAttr("name").asParam("country_name) .withEventDataAttr("value").asParam("country_revenue")
Check out also the API Documentation.
, multiple selections available,
Related content
How to Add a Map to Dashboard
How to Add a Map to Dashboard
More like this
How to Create Highchart
How to Create Highchart
Read with this
Interactive Embedded Dashboards
Interactive Embedded Dashboards
More like this
How to Create an Interactive Embedded Dashboard
How to Create an Interactive Embedded Dashboard
Read with this
Interactive Embedded Dashboards
Interactive Embedded Dashboards
More like this
Create Chart
Create Chart
Read with this
Found an issue in documentation? Write to us.