I have built a plot using plotly.py and convert it to JSON file:
plotly.io.write_json(fig, 'name.json')
After creating the JSON file I need to build the same plot using plotly.js as well. How can build it from generated JSON file? File consists of two main parts. first part is data (parameter of about 100+ lines from plot) and second part is layout of plot. Is there any standard function in plotly.js to build a plot from JSON generated by plotly rules?
json.loadsand then pass that dictionary to plotly viaplotly.io.show(dict)as in the first example here: plotly.com/python/creating-and-updating-figures