I’ve been blocked by this challenge for days that I can’t figure out what’s wrong with my code, My pen https://codepen.io/frankrui/pen/pZpmGP
The test reports,
- The data-gdp attribute and its corresponding bar element should align with the corresponding value on the y-axis.
TypeError: Cannot read property 'length' of null
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:45:83400
at NodeList.forEach (<anonymous>)
at t.areShapesAlignedWithTicks (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:45:83275)
at n.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:147:260669)
at r (https://cdnjs.cloudflare.com/ajax/libs/mocha/3.0.2/mocha.min.js:2:7852)
at r.run (https://cdnjs.cloudflare.com/ajax/libs/mocha/3.0.2/mocha.min.js:2:8853)
at i.runTest (https://cdnjs.cloudflare.com/ajax/libs/mocha/3.0.2/mocha.min.js:2:13553)
at https://cdnjs.cloudflare.com/ajax/libs/mocha/3.0.2/mocha.min.js:2:14192
at r (https://cdnjs.cloudflare.com/ajax/libs/mocha/3.0.2/mocha.min.js:2:13024)
at https://cdnjs.cloudflare.com/ajax/libs/mocha/3.0.2/mocha.min.js:2:13000
Similar to this issue https://github.com/freeCodeCamp/testable-projects-fcc/issues/455
To test it, I’ve offset my y-axis. i.e. 900 in x direction, as shown in screenshoot below, that my tick align perfectly with the bar.
