d3-sankey icon indicating copy to clipboard operation
d3-sankey copied to clipboard

Support to apply styles to node title

Open CaptSadaf opened this issue 3 years ago • 2 comments

Thanks for awesome library!

Is there any way to apply styles to nodes title as in the below attached image? We can append text to node and format the string but no styles? node.append("text").text(()=>{return "string"}) image

CaptSadaf avatar Aug 24 '21 18:08 CaptSadaf

@mbostock @Fil @jfsiii @mbostock @jasondavies

CaptSadaf avatar Aug 25 '21 07:08 CaptSadaf

@CaptSadaf you can attach a div based on your current mouse pointer position using .on('mouseover', () => { /* append div with custom html with styles */})

shreshthmohan avatar Nov 16 '21 13:11 shreshthmohan