I started the D3 bar chart project and when i plot a bar graph from the json data it seems that i am missing a bunch of data it is only plotting data up to 1988 instead of 2015 do i have do call json multiple times to get all the data?
i think the json data has everything up to 2015 because if you add this line
console.log(json.data[274]);
it will show you the last entry which is from 2015
Why isnt the data plotted using all the data then?
the problem is the code you’re using to lay out the bars.
I’m not sure if I can give you any more information as this is a certification project.
(but just to see what I mean, change the line: .attr("x", (d, i) => i * 6
to .attr("x", (d, i) => i * 3
instead and you will be able to see all the bars)
Alright yeah it all shows up now i guess i have to read through some of the lessons again
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.