🏥 🏭 Working on the COVID-19 response in Canada? Plotly & the Canadian government can help you and your organization. Learn more and get in touch.

Plot from JSON file

Hello!

I’m making a browser graph viewer. I make a plot by python, using plotly.py. Then i export plot to JSON file:

plotly.io.write_json(fig, 'name.json')

It gives me a JSON file with all used data in my python plot (it can be big, for example 144 lines). Now i need to make a plot on web-page from this json file. Is there any function in plotly.js to make it from JSON file?

I saw other topics on similat theme, but the difference here is that i use JSON file, generated by plotly.py to build a plot with plotly.js. Is there any connections between these libraries?