Bar Chart and Button

Minimal Xplain Streamlit examples

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 powerd 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

Last updated