I’m totally new to d3. Tests 10, 13, 14 are failing in my project. And actually, I understand why they do so. But no idea how to solve it. Currently, my x axis covers only years without months considered. Thus the x coordinate is the same for each Q of a year.
I went over the curriculum again (if I didn’t overlook something, it is not covered directly), looked to other posts in forum and asked Google. But no chance. Any help is appreciated.
Why is your project only showing data for January - I think… - as data-date? Are you ommiting data?
Thankfully I was already aware of the fact, that only data for January was shown. This was the case because already set up the correct height of the bars without fixing the issue with x axis. I thought it will automatically be fixed when I fix the x axis. And voila
Why do you have a sort of “year” conversion in the x-axis? Should be that axis a numeric type?
Should you treat a “date” as a date type, or as a number or string?
The funny thing is I had already found out to treat it as a “date” and tried to apply it likewise. But, I had terribly missed a small detail which led my implementation to not work at all. Hence I was kinda desperate. Following your hint I have made another try and found that little issue → I wasn’t converting the type to “Date” when saving the related data into the related array.