Parsing date time in D3.js -
i'm trying parse date time value .csv file in d3.js, reason maintain getting null. here's have,
.csv data:
"","date","count" "1","2011-11-15 02:00:01",1 "2","2011-11-15 02:00:02",2 "3","2011-11-15 02:00:03",1 "4","2011-11-15 02:00:04",1 "5","2011-11-15 02:00:05",1 "6","2011-11-15 02:00:07",1 var parsedate = d3.time.format("%i:%m %p").parse;
when console.log(parsedate(d.date))
, null. tried console.log(parsedate(d.date.tostring()))
, still null. why not parsing?
parsing d3.js time-format
No comments:
Post a Comment