I’m currently working on the D3 projects and I can’t get the tests to pass. In both the projects, the tooltip test fails even though I have tooltips with the right id. What am I doing wrong?
I can’t see the tooltips in either project. When you hover a bar or a point on the scatterplot you’re meant to see a tooltip popup displaying the values for that data point like on the example project: https://codepen.io/freeCodeCamp/full/GrZVaM .
Thanks! You are right. I realized that when I inspected the page. I changed it so that there is only one #tooltip and the information is updated in that one. This way, the tooltips pass the test. Currently, it fails only one test; trying to figure out why it says the x-values do not correspond correctly: https://pzqvo.csb.app/
Edit: Found the issue. I had to make the xScale as scaleTime and not scaleLinear.