What I’m trying to do:
Publish plot on Webpage with Plotly
What I’ve tried and what’s not working:
This was working on January 19 and is now not working. Was there a change to anvil.util???
Getting this error:
KeyError: anvil.util at [Form1, line 175]
self.plot_1.data = XXX
This is the issue. I know that my dict has the correct information for data and layout because I can load the same information on a different page from a global based on this dict. There is something wrong with the plot_1.data assignment.
Code Sample:
fig = json.loads(result)
self.plot_1.height = len(fig['data'][0]['cells']['values'][0]) * fig['data'][0]['cells']['height'] * 1.38
**self.plot_1.data = fig['data']**
self.plot_1.layout = fig['layout']