Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Dash and Plotly?

I built a Flask app and i would like to embed a chart for my data using Plotly. Making some research on Plotly i found about Dash, and i'm having some troubles deciding which one of the two i need to use for my project. What's the difference between them?

like image 690
Jack022 Avatar asked Nov 04 '18 23:11

Jack022


People also ask

Is Plotly the same as Dash?

Dash is a python framework created by plotly for creating interactive web applications. Dash is written on the top of Flask, Plotly. js and React. js.

Is Plotly part of Dash?

Plotly develops Dash and also offers a platform for writing and deploying Dash apps in an enterprise environment.

What does Plotly dash do?

Plotly also offers a commercial companion to Dash called Dash Enterprise. This paid service provides companies with support services such as hosting, deploying, and handling authentication on Dash applications. But these features live outside of Dash's open source ecosystem. Dash will help you build dashboards quickly.

Should I use Plotly dash?

I would recommend you use Plotly Dash. You're likely to get more community support on Dash than on Plotly Chart Studio. Getting graphs to be draggable in Dash is not as easy, but you have plenty of flexibility with the design of your app layout.


2 Answers

I have asked pretty much the same question on Dash forums and Chris Parmer, the creator of Dash, answered it (how awesome is that?). You can read the full discussion here: https://community.plotly.com/t/plotly-ecosystem-explanation/53826/2

But the summary is:

  1. You might want to use Plotly / Plotly Express if you want to add interactive charts to your existing pages here and there and your backend is using some server side language.

  2. You might want to use Dash if you want to build a web app with interactive charting capabilities where everything (frontend and backend) is handled with the tools that Dash provides.

PS: Dash can also inject interactive charts to your existing pages using either iframes or Dash enterprise solution (paid).

like image 62
ruslaniv Avatar answered Oct 23 '22 21:10

ruslaniv


Actually Dash was made by Plotly's creators as a way to easily implement a web interface and create dashboards with Plotly without having to learn javascript, html and other web technologies.

With Dash you don't make visualizations, you build an interface to display Plotly's visualizations.

It uses Flask under the hood so it is specially compatible with other Flask apps. For more info refer to Dash's deployment reference.

Edit:

The reference I point to used to have more information about how to work with Flask, but not so much anymore. There are plenty other tutorials out there though, e.g. this one.

like image 40
vlizana Avatar answered Oct 23 '22 20:10

vlizana