D3-graph-gallery icon indicating copy to clipboard operation
D3-graph-gallery copied to clipboard

add position:absolute style to tooltip example code

Open yangdanny97 opened this issue 4 months ago • 0 comments

the code in the examples is missing this style for the tooltip, so it doesn't work as-is when copied

https://www.reddit.com/r/d3js/comments/1azxo4y/scatterplot_tooltip_not_working_correctly/

the version hosted on the graph gallery website happens to work because the position: absolute style for .tooltip is added by bootstrap, but running the code on a page without bootstrap won't work

yangdanny97 avatar Feb 26 '24 03:02 yangdanny97