The anvil server doesn’t know anything about javascript dates
Only the client knows about javascript dates.
There are two options I can see:
- pass the data to the client and then do the conversion of python date → js date on the client.
- use the documented serialization from google
How to use Date strings representation > Dates et heures | Charts | Google for Developers
Reference for the dataparm representation
Referenz zur Google Visualisation API | Charts | Google for Developers
The clone link you provided was a little heavy-weight
Here’s an adjustment of the demo app using the documented protocol from google