react-d3-graph
react-d3-graph copied to clipboard
Tooltip for Nodes
Hi @danielcaldas I'm trying to enable tooltip for node on MousrOver. I'm unable to access the below URL.
If possible, can you enable it? Even after including the node configuration, the tooltip is not visible.
node: { showToolTip: true, tooltipProp: 'id', tooltipBackgroundColor: ' black', tooltipTextColor: 'white' }
Can you suggest me, how to attach tooltip onMouseOverNode? Thanks
You could create your own custom component using:
node: { ..., viewGenerator: generateCustomNode }
This would allow to do whatever you want with the Node
function generateCustomNode(node: any) {
return node ? <PersonNode person={node} /> : null;
}