-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
date parsing fails when using number #311
Comments
Hi, Thank you for reporting. This is a bug and now c3 can't accept date as number as you wrote. The code needs to be fixed to accept a number. The condition I added a sample for this issue: |
Excellent, thanks! |
I think that this issue still exists - have a look at parseDate function, my graph crashes there on the very same error. Let me know if you need a sample to reproduce this. |
Oh.. Could you give a code to reproduce this? It seems working well in my examples. Thanks. |
Here's a reproduction:
Please note: when removing the custom gridlines, and min/max it works again. So the the parseDate function is probably used when using these features. |
I think I just ran into this as well. I'm using axis.x.max and gridlines on a time-series chart with the flow() API. It's intermittent for me though, so I can't add much to this conversation at the moment. |
Hi, Thanks for the code and I'm sorry I noticed that in the previous commit I fixed the different point from where you pointed out. I think now we can parse number correctly on grid and max/min. |
Great, thanks! |
Thanks! Fixed over here. :-) |
I'm not sure I understand this line of code:
How will date be instaceof Date, and why would we need to instantiate a new Date instance for it? Wasn't it supposed to be:
The text was updated successfully, but these errors were encountered: