Streamlit Dashboard Creator
import streamlit as st
import pandas as pd
import numpy as np
st.title('Streamlit Dashboard Template')
st.write("This is a simple Streamlit dashboard. You can start customizing it by adding more Streamlit components.")
st.header("Select a job")
form = st.form(key='job_selection_form')
job = form.selectbox('Choose a job role:', ['Software Developer', 'Data Scientist', 'Product Manager', 'Designer'])
submit_button = form.form_submit_button(label='Submit')
if submit_button:
st.write(f"You selected: {job}")
# Display metrics under the form
col1, col2, col3 = st.columns(3)
with col1:
st.metric(label="Age", value="30 years")
with col2:
st.metric(label="Married Count", value="150")
with col3:
st.metric(label="Balance", value="$1,234")
Created: | Last Updated:
Introduction to the Streamlit Dashboard Template
Welcome to the Streamlit Dashboard Template! This template is designed to help you create a customizable dashboard with Streamlit, a powerful tool for building interactive web applications. The template includes a simple form, metrics, charts, and a detailed data view, all of which can be customized to fit your needs. Whether you're looking to display data, gather user input, or just create a dynamic interface, this template is a great starting point.
Getting Started with the Template
To begin using this template, simply click on "Start with this Template" on the Lazy platform. This will pre-populate the code in the Lazy Builder interface, so you won't need to copy or paste any code manually.
Test: Deploying the App
Once you have the template open in the Lazy Builder, you can deploy the app by pressing the "Test" button. This will initiate the deployment process and launch the Lazy CLI. If the code requires any user input, you will be prompted to provide it through the Lazy CLI after pressing the "Test" button.
Entering Input
For this particular template, you will be asked to select a job role from a dropdown menu. This is the user input required by the app. Once you make your selection and submit the form, the dashboard will update to reflect your choice.
Using the App
After deployment, you will be able to interact with the Streamlit dashboard. The interface includes:
- A title and introductory text explaining the dashboard.
- A form to select a job role from a dropdown menu.
- Metrics displayed in columns, such as age, married count, and balance.
- Charts side by side for visual representation of data.
- A static table with a detailed data view.
You can customize the dashboard by adding or modifying Streamlit components as needed.
Integrating the App
If you wish to integrate this dashboard into an external service or frontend, you may need to take additional steps, such as adding the app's server link provided by Lazy to the external tool. However, for this template, no further integration steps are required beyond deploying the app on the Lazy platform.
Remember, Lazy handles all the deployment details, so you don't need to worry about installing libraries or setting up your environment. Enjoy building your Streamlit dashboard with ease!