I need to save the JSON code that generates a plot.ly chart to a .json file to be used elsewhere, and I need to do this with multiple charts. Is there a nice way of doing this?
You can use fig.to_json()
or fig.write_json()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With