c3: Failing to parse dates
When I use the timeseries type, I keep getting the “Failed to parse x to Date object” error. On dates like ‘2014-08-12T00:00:00.000Z’, which when I try to make with new Date in the console, work just fine. Any idea why this is happening?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 27 (4 by maintainers)
Just ran into this myself. The format suggested earlier does not actually match the date format requested in the original post.
Got lucky and found a helpful hint here in the D3 wiki about ISO formatting.
This worked for me:
%Y-%m-%dT%H:%M:%S.%LZHi, please try
data.xFormatif you load datetime string:UPDATE: I updated the reference in c3js.org. Sorry for the confusion and poor document.