I was trying to create charts using Streamlit. I am reading the data from Snowflake to create a charts. I want to add an option to see the Data set in the ellipsis menu. How i can add new option for ellipsis menu to see the data set.
You can try something like this:
import streamlit as st
st.set_page_config(
page_title="You title",
page_icon="<icon>",
layout="wide",
initial_sidebar_state="expanded",
menu_items={
'Help': 'https://www.extremelycoolapp.com/help',
'Bug': "https://www.extremelycoolapp.com/bug",
'About': "# This is a header. This is an *extremely* cool app!",
'Data': ...
}
)
Thanks for the response.
But I don’t want to add the option for a hamburger menu. I need to add and remove options from the ellipsis menu(Each chart having three dots(…) is called the ellipsis menu in Streamlit)
Yes, Correct.
Those are not added by Streamlit, but by Altair. Unfortunately, there is limited customization available, basically you can
- Not show one or more of the options
- Not show the ellipsis at all
You can read more here GitHub - vega/vega-embed: Publish Vega visualizations as embedded web components with interactive parameters. – see the entry for “Actions”
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.