Generation

generate functionWed, 22 Feb 2023

Add the x-axis value captions to the columns fig = px.bar(x=counts, y=label, orientation='h') fig.update_layout(title_text='Какая рабочая среда для вас наиболее предпочтительна?') fig.show()

# Update x axis fig.update_xaxes( title_text="Количество ответов", tickvals=counts, ticktext=label ) # Set y-axis title fig.update_yaxes(title_text="Ваш выбор") fig.show()

Questions about programming?Chat with your personal AI assistant