Plotly Graphs on Webpage

Folks,

First off, let me start by saying I am a novice and learning as I am going. So this could be a very very stupid question.

I recently made a bunch of graphs that I would like to post to an internal web page. I’ve been scouring the internet looking for a way to do this. As far as I can tell, I need to purchase Dash. Is this true?

Cheers.
Rich

No, you can use Dash for free, but some specific enterprise-y features cost money.

I’m going to be brutally honest and say that the official Plotly website kind of sucks at explaining this to people. And I know lots of people who’ve been put off using both Plotly and Dash because of this. But here is the Dash user guide: https://dash.plot.ly/

And here is a Dash tutorial that actually got me in to using Dash and realizing how great it is: https://pythonprogramming.net/data-visualization-application-dash-python-tutorial-introduction/

There’s lots of new fun features since that tutorial was written, but if you follow that tutorial and go to the user guide and come here to ask questions, I think you have a good chance of figuring it out!

Hi @rjddatascience,

Dash is the best approach if you want to use pure python to make a web dashboard where you have a Python process active for responding to user interaction events and updating the plots. And as @Damian said, you can use Dash from free.

But if you’ve made plots using plotly.py and you just want to embed them on a website that you’re already developing in JavaScript, and you don’t need to dynamically update them with Python logic, then you can do this without Dash. If you can host the plot on plot.ly, the easiest way is to just put it in an iframe (https://help.plot.ly/embed-graphs-in-websites/). You may need a paid account for this.

Otherwise, you could save the plot to JSON using plotly.io.write_json and then load that JSON into Plotly.js and use it as a part of your website however you would like

-Jon