import plotly.express as px import pandas as pd df = pd.DataFrame(dict(time=['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], product_A = [20, 35, 30, 35, 27, 43, 24, 34, 14, 27, 22, 50], product_B = [25, 32, 34, 20, 25, 34, 54, 23, 43, 33, 27, 29])) fig = px.bar(df, x="time", y=["product_A","product_B"], title="Sales of Product A and Product B") fig.show()