Hello everyone,
I have the below dataframe:
I am only interested in plotting the Communications column with the index (‘Put Quotetime’). I run the following code to plot a line chart with st.altair_chart
Altair_Figure = alt.Chart(DataFrame).mark_line().encode(
x = DataFrame['Put Quotetime],
y = DataFrame['Communications])
The output from altair is:
And the ouput from streamlit is:
More details:
My project is relatively simple, I have multiple dataframes like the one in this example, and I would like to just create line charts for it. Using the st.sidebar.checkbox function, I hope to overlay each of the line charts atop each other. This is the ultimate goal of the project and the logic is already written for the part of the checkboxes. I’m just finding plotting the lines to be impossible. Any help is greatly appreciated, thank you.