Bar Chart and Button
App View:
Code:
import streamlit as st
import xplain
# import plotly.express as px
x = xplain.Xsession()
x.startup('sDefault_withQCost_sample_5')
x.run({
"method": "deleteRequest",
"requestName": "test"
})
df = x.open_attribute(object_name="Product",
dimension_name="Automat",
attribute_name="Automat",
request_name="test")
fig = st.bar_chart(df, x='Automat', y='# Product')
st.title = "This is a minimal streamlit app powered by Xplain Data"
# st.plotly_chart(fig)
if st.button('Say hello'):
st.write('hello world!')
Packages that should be entered in the pip install field: streamlit, xplain