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
Uncaught Error: Date/time format not recognized. Pick between 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS' #7
Comments
Hi @ijunaid8088! The reason that you are getting this error is because your var dataset = [
{
"measure":"Herbst Wicklow Cam",
"data":[
["2016-12-30 00:00:00",1,"2017-01-06 00:00:00"]
]
}
]; I assume you forgot the extra square brackets Please let me know if this fixed it. |
Glad that worked out for you! |
Hi thanks a ton, we are using your great work in our project and added a new future with this. Just a few more questions of interest! We have built the report but we want to send it in an email, do you have any ideas about it? I can implement CSS in email but what about JS, is that possible to do that? What I am thinking here is to create a rake task which will run once in a day and then It will first create data for Visavail and so on i can create an html view with this, But can we send it in email as well? |
Hi, I am happy to hear that you are putting Visavail.js to good use in your project! Sending the report in an email indeed poses a challenge due to limitations in the execution of JS. However, I can think of three possible ways to achieve your goal:
More information regarding option 2:
Let us know which solution you settled for. Maybe there is some insight we can implement here to improve the library! |
Hi.. Thanks a ton. for your answers they are helping us a lot.. What I think is the better idea is to save SVG to png and then send an email. But not sure yet that what I am going to apply, Your suggestions are very very good and considerable for us. Anyhow, as we put a name in Do you think it would be better have animation in bars, Like they may create with a slow motion, (Just saying, that how good they will look with animation.) |
For follow up: I edited it as
the last append was only text for the moment I changed it to html. I hope that would not harm any other thing. |
@ijunaid8088, since the link issue is different from the original issue I have opened issue #10 to solve this. |
As to the animation, it would be a possibility. Personally, I would focus the display rather on displaying the data in a clear way than adding distracting animations. Technically, I believe animations are possible. Do you want to look into that? |
Hello everyone!
this is my data
and on the if condition where am getting the error, I tried to debug that my data is giving correct result but still going in the else part where the above error is mentioned as
In above picture thats is the data which am logging!
even this condition is passed
console.log(parseDateTimeRegEx.test(d.data[0]));
The control still going to the else part of if?
Can you please help with this?
The text was updated successfully, but these errors were encountered: