Adding d3-tip library

I am trying to add some tooltips by using the d3-tip library >>> https://www.npmjs.com/package/d3-tip

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 >>> https://stackoverflow.com/questions/24989128/why-is-my-d3-tip-not-working#new-answer

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

HTML >> https://github.com/SabahatPK/gapminder-clone/blob/master/index.html
JS >> https://github.com/SabahatPK/gapminder-clone/blob/master/js/main.js
All code >> https://github.com/SabahatPK/gapminder-clone

Thanks.

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