User story 6 and 7 not passing

Here is the link to my code: https://codepen.io/khal45/pen/dyQyVmL?editors=0010
I’m working on the 4th data visualization project but user story 6 and 7 are not passing please help!

I don’t see a link to your CSS in your HTML file ,if its required. Hope this helps.

I really do not know anything about D3 so I probably shouldn’t try to help. But I’m a little confused.

  • The countyData array is 3142 in length

  • The selector document.querySelectorAll('svg path').length gives 3142

  • But the selector document.querySelectorAll('.county').length gives 3141 (which is what the test is using for the count).

Can’t say I know why, but it would seem like one of the paths is missing the county class.

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