Building Dashboards with Dash and Plotly
Alex Scriven
Data Scientist
$$
$$
Advantages:
$$

plotly.express$$
$$
$$
$$
$$

import plotly.express as pxline_graph = px.line(data_frame=ecom_sales, x='Year-Month', y='Total Sales ($)', title='Total Sales by Month')line_graph.show()

$$
bar_fig = px.bar( data_frame=ecom_sales, x='Total Sales ($)', y='Country', title='Total Sales by Country',orientation='h')bar_fig.show()

Changing the bar width of our bar graph:
bar_fig.update_layout({'bargap': 0.5})bar_fig.show()
$$
$$
$$
Check out the Plotly documentation

Building Dashboards with Dash and Plotly