adilmoujahid / DonorsChoose_Visualization

Source for blog post: Interactive Data Visualization with D3.js, DC.js, Python, and MongoDB
422 stars 244 forks source link

graphs.js:13 Uncaught TypeError: Cannot read property 'setDate' of null #7

Open anubhavcodes opened 8 years ago

anubhavcodes commented 8 years ago

I had some console.logs so maybe the line number must be wrong, the exception is occurring on graph.js : d["date_posted"].setDate(1)

Apparently d["date_posted"] is null after running dateFormat.parse on it. Let me send you a PR if possible.

gaoquanao commented 7 years ago

I got the same issue, Could you please tell me how you solve it?

dazzag24 commented 7 years ago

Same issue here.

dazzag24 commented 7 years ago

Actually someone has posted a fix for this. See Pull Request #15 for a simple change to graph.js. This results from a slight change in the date format in the opendata_projects.csv file.