Bygg dashboards med Dash och Plotly
Alex Scriven
Data Scientist
$$
$$
Fördelar:
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()

Ändra stapelbredden i vårt stapeldiagram:
bar_fig.update_layout({'bargap': 0.5})bar_fig.show()
$$
$$
$$
Kolla in Plotly-dokumentationen

Bygg dashboards med Dash och Plotly