Test 9 is failing with this error, despite everything is indeed correctly lined up ( I think): month values don't line up with y locations : expected false to be true
Seems like couple others had the same issue. Looked into each topic but non of the fellows seem to be using the same method for the axis for y like me (scaleTime()). Mostly scaleBand() is used. I have failed to apply that method in my code, assumingly as I don’t have yet enough knowledge about that method. Any help is appreciated.
Hmm. I also see red lines but cannot really understand, what they actually mean in my case. They all are related to the y axis though. However, couldn’t find the section with a double declaration.
Yeah. I had many trials on the sections related to the y axis. Didn’t succeed so far.
For example in this fork, I have removed the -1 part in the allData array and added it instead manually to the y coordinate and the height of the rectangles. When doing so test 9 succeeds but test 8 (data-month attribute) fails. When I also add the -1 there the initial fail occurs again (as expected). Seemingly I am overseeing a very small detail. Just cannot find where.
I tried running this with d3 link instead but the same so that is not the issue. Also this code pen passes but you need to add the testable link. https://codepen.io/fendermaniac/pen/GYzBaR it has all the months listed. I just did the scatter plot with a tutorial you may try that and go step by step.
You won’t believe how I actually could manage to fix it.
I found the hint from this post and changed the y value of the g element for the y axis of the translate function to 15. And voila. Cannot describe the relief I am having right now.