Scatterplot Graph

Hey Guys…
I am stuck. Can someone help me. I have searched for typos but this last test doesnt pass.

2. My tooltip should have a “data-year” property that corresponds to the “data-xvalue” of the active area.

It is passing the test for me, did you fix it?

Yes here i had a typo in setAttribute i wrote d instead of i :man_facepalming:

                     tooltip.setAttribute("data-year", i[3]);
                     tooltip.innerHTML = `${i[2]} ${i[3]} <br> ${i[4]}`;

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.