Adding d3-tip library

I am trying to add some tooltips by using the d3-tip library >>>

After I installed it (via NPM), I tried to add the script tag in index.html file but I have d3 version 5 and all example codes only show v3 or v4 scripts >>>

Does anyone know how I can add d3-tip for v5 of d3?

JS >>
All code >>


1 Like

Never mind. I must’ve missed saving the file or something b/c when I tried it again, it worked out.

1 Like