Untitled
unknown
plain_text
2 years ago
609 B
9
Indexable
fig = px.bar(data_chain.sort_values('count', ascending=False), x='category', y='count', title='Количество сетевых и несетевых объектов по категориям', color='chain', text=data_chain['share'], color_discrete_sequence=px.colors.qualitative.Set3 ) fig.update_layout( xaxis_title='Категория заведения', yaxis_title='Кол-во заведений' ) fig.update_traces( hovertemplate='Количество: %{y}', texttemplate='%{text:.1f}%' ) fig.show()
Editor is loading...