I am trying to create a bar chart where the data pairs of two categories appear side-by-side “glued together”, i.e., something of this type:
However, all commands that I have found and tried produce 2D plots where the data pairs of two categories appear stacked on top of each other, i.e., something like this:
import streamlit as st
import pandas as pd
import numpy as np
chart_data = pd.DataFrame(np.random.randn(20, 3), columns=["a", "b", "c"])
st.bar_chart(chart_data)
How can I produce the desired 2D bar plot which is non-stacked (see first figure above)?