This bug was caused as d3 wasn't able to parse the datetime for
the format "%Y-m-%d" as the actual datetime in the mongoDB data
was of the format "%Y-%m-%d %H:%M:%S" rendering d["date_posted"]
as undefined or null, and calling a setDate on undefined was
throwing an exception.
This bug was caused as d3 wasn't able to parse the datetime for the format "%Y-m-%d" as the actual datetime in the mongoDB data was of the format "%Y-%m-%d %H:%M:%S" rendering
d["date_posted"]
as undefined or null, and calling asetDate
on undefined was throwing an exception.