ZoomCharts Documentation
NetChart.settings.nodeMenu
This section is defined by the type ItemsChartSettingsNodeMenu.
Configurable node menu with option to specify a range of displaying buttons.
Properties
contentsFunction: (data: ItemsChartDataObjectNode, node: ItemsChartNode, callback: (result: string | HTMLElement) => void) => string | HTMLElement
Default value: null
Inherited from: ItemsChartSettingsMenu
Version 1.9.0: added the ability to return
HTMLElement
.Prepare html string or DOM element to include in the menu. Called whenever a menu is about to be shown.
If this callback is not defined, the menu will display the label of the element.
Parameters
Return value
A HTML string or DOM element to include in the menu. Alternatively return null and call callback() later.
enabled: boolean
Default value: true
Inherited from: ItemsChartSettingsMenu
Show/hide node/link menu.
position: "pointer" | "center" | "outside"
Default value: "outside"
Where the menu is positioned relative to the node
showData: boolean
Default value: false
Inherited from: ItemsChartSettingsMenu
Whether to add a view data button to the menu. Useful for debugging.