Tell us what’s happening:
Hi!
I’ve made a working chart, but cannot pass some tests…
Could you please give me some clues, what can be wrong and in what places?
I am struggling to pass this tests…
—The minutes data-yvalue of a dot is below the range of the actual
minutes data : expected 35 to be at least 36—
I don’t have any idea where this 35 comes from, since there is no 35 minutes in the data…
—y values don’t line up with y locations : expected false to be true—
Here I don’t know how it checks so no idea as well…
Please help… Thank you in advance!!!
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Challenge: Data Visualization Projects - Visualize Data with a Scatterplot Graph
Link to the challenge:
1 Like
Did you fix it? Your code is passing for me.
Nope. 14/16 tests…
Kinda strange if you did all the 16
It is passing all the tests for me using Chrome and Firefox. If you are using Safari try a different browser.
1 Like
I tried Chrome, Brave, Safari - 14/16 tests…
It’s also passing for me, using Chrome:
1 Like
Hm… Anyway, if tests are good on your side- I will just continue…
Thanks!)
Odd, maybe some on a Mac can test it as well for us to see it that is the issue?
Hold on, I am updating Chrome…
Nope. Still 14/16.
I guess, since the code works for everyone but myself - I will continue :))
And yes, if anyone can test it on Mac - will be great. Thanks
Do you have any browser extensions enabled? It’s possible that they could interfere with the tests…
a lot Adblock, for example.
It doesn’t work without it as well.
If you disable all of your browser extensions, do you have any more luck passing the CodePen tests?
Nope, doesn’t work without all of them as well.
Seems like browser/mac issues…
Can you open the browser console and see if you get any errors when you run the tests?
I don’t really see anything in the test code that would be an issue. It does a date.getMinutes() and compares it to some hard coded values. And the values you have are constructed from hardcoded dates as well so even if your PC’s time is incorrect it should still work (I think).
It does seem to be an issue with the dates though.
No errors found… Different time zone should not give any errors at all…
I don’t remember anyone else having issues with this, although that doesn’t mean there can’t be an issue I don’t know about.
The tests are here in case you want to see them
https://github.com/freeCodeCamp/testable-projects-fcc/blob/main/src/project-tests/scatter-plot-tests.js
1 Like
Hi there. All 16 passed for me on Mac using chrome { Version 112.0.5615.137 (Official Build) (x86_64) }. Can you share the error from 14- 16? Thanks
when I check it in dev tools, it has multiple errors of: [Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive.
Maybe look into this.