Closed Tropicalista closed 10 years ago
Just to be more exhaustive look at this image: screenshot
The format function only changes the text, C3 was looking at the your date strings as numbers, I converted them before putting them in the graph.
Here is the fixed fiddle
Also have a look at D3s date formatter. You should consider using data.xFormat from the C3 library itself, if you have to pass date strings around, rather than date objects. I think that way you can get C3 to automatically decode the dates for you.
Yes, I ended with similar solution. Thanks
Cool, you can close this issue then, if it is resolved. I am not an admin, and I didn't create it so I cannot. Thanks!
I'm trying to use c3js to display some analytics data chart. I have an array of date where date are in format YYYYMMDD. I try to convert this string to date using
axis.x.tick.format
without success.The problem happen only if the range of date is between two months, but with all range in same month it works.
I'm using this format function:
Please check this fiddle to view the problem: check this fiddle