Context Menu

The context menu provides context-specific actions for items. Set the contextMenuItems to populate the context menu with actions. The SupplyChain component introduces a default context menu which provides actions to interact with the chart.

function SupplyChainChart() {
  return (
    <SupplyChain data={data} contextMenuItems={SupplyChainContextMenuItems}></SupplyChain>
  )
}

To adjust the context menu visualization, add a custom React component using the renderContextMenu prop.