One other question regarding this matter: in line 36 of my code, why must I write âtimeArray[i]â for the code to work instead of just âdâ? Arenât âtimeArray[i]â and âdâ meant to be the same exact thing?
line 36: .attr("x", (d, i) => xScale(new Date(timeArray[i])))
For example, for the y axis I can use either âdâ or âgdpArray[i]â, they both work: