We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey,
I’m trying to make a line and bar chart using st_echarts and separating them with a st.tabs
However, when the second tab is selected, the chart is not displayed…
from streamlit_echarts import st_echarts import streamlit as st tab1, tab2 = st.tabs(['Line', 'Bar']) with tab1: options = { "xAxis": { "type": "category", "data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], }, "yAxis": {"type": "value"}, "series": [ {"data": [820, 932, 901, 934, 1290, 1330, 1320], "type": "line"} ], } st_echarts(options=options) with tab2: options = { "xAxis": { "type": "category", "data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], }, "yAxis": {"type": "value"}, "series": [ {"data": [820, 932, 901, 934, 1290, 1330, 1320], "type": "bar"} ], } st_echarts(options=options)
The text was updated successfully, but these errors were encountered:
Hi! Try adding this to your code:
st.write( '<style>iframe[title="streamlit_echarts.st_echarts"]{ height: 500px !important }</style>', unsafe_allow_html=True )
Sorry, something went wrong.
@doliveira-lts ,i has the same issue.But i use sac.tabs my custom component streamlit-antd-components instand of st.tabs.
No branches or pull requests
Hey,
I’m trying to make a line and bar chart using st_echarts and separating them with a st.tabs
However, when the second tab is selected, the chart is not displayed…
The text was updated successfully, but these errors were encountered: