Streamlit E-charts

I am trying to plot a pie chart using echarts library. But I have my data stored in a form of a dataframe. Can anyone please help how to plot the graph?

Thank you

you can try to use plotly or other packages that originally support by streamlit official.
I think streamlit echarts component is developed by some individual and surely it could be less supported in the forum or anywhere else.
but in your case you can try the sample code here :
to transform your dataframe to two seperated lists, one list use as xaxis value, another use as yaxis value. replace the data part in the following code

from streamlit_echarts import st_echarts

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"}

andfanilo/streamlit-echarts: A Streamlit component to render ECharts. (