Context Menu
The context menu provides context-specific actions for items.
Set the contextMenuItems
to populate the context menu with actions.
The CompanyOwnership
component introduces a default context menu which provides actions to interact with the chart.
function CompanyOwnershipChart() {
return (
<CompanyOwnership data={data} contextMenuItems={DefaultContextMenuItems}></CompanyOwnership>
)
}
To adjust the context menu visualization, add a custom React component using the renderContextMenu
prop.