Add Chart.js on anvil App

You’ve got a bad import of momentjs. I don’t know what you’re using that for, but it’s breaking things.

In general, though, you still have the same problem you had before. You’re not giving a list of strings to the labels property: 'labels': (moment.stringd.format('%d/%m/%y %H:%M:%S')),

If you want the labels to be adjusted for the timezone, pull the times from the data table and then adjust them to the user’s time zone using datevariable.astimezone(anvil.tz.tzlocal()), and then convert that to a string in a list of strings. All that is going to be done in Python.

1 Like