Grouped bar chart with altair and streamlit

Hi,

i want to draw a grouped bar chart with altair and streamlit, but i don’t know how.

This is my dataframe:

 	Date	Revenue	Earnings
0	2021-06-30T00:00:00	2833000000	350000000
1	2021-03-31T00:00:00	2870000000	219000000
2	2020-12-31T00:00:00	2392000000	17000000
3	2020-09-30T00:00:00	2365000000	-20000000

FAJKS

it should look like this.

Thank you

Is it possible with plost?

It’s possible with Altair: https://altair-viz.github.io/gallery/grouped_bar_chart.html

with plost it´s possible, but it seems not to work with columns.

plost.bar_chart(data=df,
                    bar='Quarter', height=400, width=100,
                    value=['Total Revenue (Mill.)', 'Net Income (Mill.)'],
                    group=True)

Now i´ll try altair.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.