-
Notifications
You must be signed in to change notification settings - Fork 130
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
How can I use a date in the rows attribute? #334
Comments
This is not possible without custom deserialization to parse the attribute. Currently, the default My recommendation is to pass rows as a property from JS with the value that uses Date objects. |
That looks like a huge limitation because I cannot use the web component without using JavaScript. |
Looking through the docs, I found https://developers.google.com/chart/interactive/docs/datesandtimes#dates-and-times-using-the-date-string-representation which documents a custom serialization for We can use
Is the input for the chart static? I would expect most applications to generate the input dynamically, in which case JavaScript is already involved. |
Yes, the input is static generated in a Java app. With data it works fine. Thanks @rslawik |
I'm trying to use a timeline chart where I have to pass dates.
But do I pass dates to the rows attribute?
I tried:
But get:
Error: Type mismatch. Value 2019-06-21T08:12:00.000Z does not match type date in column index 1
The text was updated successfully, but these errors were encountered: