-
Notifications
You must be signed in to change notification settings - Fork 109
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 Format issue #552
Comments
Taucharts does not attempt to detect the type of data. You need to cast string to date type explicitly for date field. const data = [{ "activityGroup": "Growth Personal", "activites": 1, "value": 2, "date": new Date("2018-08-02 21:29:14")}] |
Thank you, that solved my issue with the Javascript error. |
@patterson. It is strange. I need some time for investigate this issue. Could you try to make https://jsfiddle.net/taucharts/c5806yeg/33/ |
I was able to fix it by adding a tickPeriod to the guide. |
I'm having trouble getting the date formatting to to work in the latest version of Taucharts. Here is my configuration:
{ "type": "stacked-bar", "x": "date", "y": "activites", "color": "activityGroup", "guide": { "x": { "autoScale": true, "nice": true, "tickFormat": "%d-%b-%y" } } }
Here is my data:
[{ "activityGroup": "Growth Personal", "activites": 1, "value": 2, "date": "2018-08-02 21:29:14" }, { "activityGroup": "Growth Personal", "activites": 2, "value": 4, "date": "2018-08-02 21:29:14" }]
I get the following error:

The text was updated successfully, but these errors were encountered: