Tworzenie dashboardów z Dash i Plotly
Alex Scriven
Data Scientist
$$
$$
Zalety:
$$

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()

Zmiana szerokości słupków na wykresie:
bar_fig.update_layout({'bargap': 0.5})bar_fig.show()
$$
$$
$$
Zapoznaj się z dokumentacją Plotly

Tworzenie dashboardów z Dash i Plotly