plost icon indicating copy to clipboard operation
plost copied to clipboard

Why do I need to explictly assign bar/value/x/y args for every plost funcs

Open aEgoist opened this issue 1 year ago • 0 comments

I'm trying to plot a chart via plost instead of streamlit, this code is fine: st.bar_chart(df) it uses index as bar index, each columns as values, however this code raises an error: plost.bar_chart(df) TypeError: bar_chart() missing 2 required positional arguments: 'bar' and 'value' I need to change the code like this: plost.bar_chart(df.reset_index(names=['index']),bar='index',value=list(df.columns)) It is weird and no need to copy and change the df object at the first place, why do I need to explictly assign bar/value/x/y args for every plost funcs, why don't you just use the index and whole columns as value content to run the render as default?

aEgoist avatar Mar 27 '24 09:03 aEgoist