Answers for "horizontal Bar chart using Plotly in Python"

1

how to plotting horizontal bar on matplotlib

import matplotlib.pyplot as plt 

data = [5., 25., 50., 20.]
plt.barh(range(len(data)), data)
plt.show()
Posted by: Guest on June-13-2020
0

plotly vertical bar chart

import plotly.express as px
df = px.data.tips()
fig = px.bar(df, x="total_bill", y="day", orientation='h')
fig.show()
Posted by: Guest on May-02-2020

Code answers related to "horizontal Bar chart using Plotly in Python"

Python Answers by Framework

Browse Popular Code Answers by Language