Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save plot.ly JSON to a file

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?

like image 684
PythonParka Avatar asked Sep 03 '19 10:09

PythonParka


Video Answer


1 Answers

You can use fig.to_json() or fig.write_json().

like image 90
nicolaskruchten Avatar answered Oct 03 '22 09:10

nicolaskruchten