Interface ResultHighchart.OnPointClick
- Enclosing class:
ResultHighchart
public static interface ResultHighchart.OnPointClick
-
Method Summary
Modifier and TypeMethodDescriptionback()
Define a set of Context Linking options in a menu that will show when the user clicks in the chart.triggerEvent
(String eventName) Define an event that will be triggered when the user clicks in the chart.
-
Method Details
-
triggerEvent
Define an event that will be triggered when the user clicks in the chart.
The name of the event is set as a parameter, the desired payload of the event can be set using instance methods of the returnedResultHighchart.TriggerEvent
Warning: this option is not compatible withshowContextMenu()
. Calling bothtriggerEvent()
andshowContext()
menu will throw anIllegalArgumentException
.- Parameters:
eventName
- the name of the event- Returns:
- a new
ResultHighchart.TriggerEvent
instance
-
showContextMenu
ResultHighchart.ContextMenu showContextMenu()Define a set of Context Linking options in a menu that will show when the user clicks in the chart.
If a drilldown was defined, the first menu item will allow to trigger the drilldown. And the menu item's label can be customized withResultHighchart.ContextMenu.setDrilldownLabel(String)
andResultHighchart.ContextMenu.setDrilldownLabelTranslations(Map)
Warning: this option is not compatible withtriggerEvent(String)
. Calling bothtriggerEvent()
andshowContext()
menu will throw anIllegalArgumentException
.- Returns:
- a new
ResultHighchart.ContextMenu
instance
-
back
ResultHighchart back()- Returns:
- the
ResultHighchart
instance, for convenience
-