by ips

Streamlit app with sample data

Test this app for free
131
import streamlit as st

# Use st.cache_data for caching to avoid deprecation warning
import pandas as pd
import numpy as np
import pydeck as pdk
import plotly.express as px

def load_data():
    # Sample data generation
    np.random.seed(0)
    dates = pd.date_range('20230101', periods=6)
    df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD'))
    return df

def main():
    st.title("Dashboard with Cool Graphs and Maps")

    df = load_data()

    st.write("### Sample Data")
    st.write(df)

    st.write("### Line Chart")
Get full code

Created: | Last Updated:

A basic streamlit web app starting point

Streamlit Dashboard Template

This template creates an interactive dashboard using Streamlit that displays sample data through various visualizations including line charts and maps. The dashboard shows both 2D and 3D map visualizations along with sample data in a clean, organized layout.

Getting Started

  • Click "Start with this Template" to begin using this template in the Lazy Builder interface

Test the App

  • Click the "Test" button to deploy and launch the application
  • Once deployed, you'll receive a dedicated URL to access your dashboard

Using the Dashboard

The dashboard contains several interactive sections:

  • Sample Data Table: Displays randomly generated time series data
  • Line Chart: Visualizes the sample data trends over time
  • 3D Map: Shows a hexagon layer visualization centered around San Francisco
  • Regular Map: Displays a standard 2D map view of the same data points

The dashboard is fully interactive - you can:

  • Hover over data points in the charts
  • Zoom and pan in both map views
  • Rotate and adjust the 3D map perspective

This template provides a foundation that you can customize with your own data and visualization preferences by modifying the data loading function and chart parameters.



Template Benefits

  1. Real-Time Data Visualization
  2. Enables instant visualization of complex business data through interactive charts and maps
  3. Helps stakeholders make data-driven decisions quickly by presenting information in an easily digestible format

  4. Location-Based Analytics

  5. Features built-in mapping capabilities for geographical data analysis
  6. Perfect for businesses tracking regional sales, customer distribution, or supply chain logistics

  7. Rapid Prototyping & Development

  8. Minimal code required to create professional-looking dashboards
  9. Reduces development time from weeks to hours for basic business intelligence tools

  10. Cost-Effective Business Intelligence

  11. Provides enterprise-level visualization capabilities at a fraction of the cost of commercial BI tools
  12. Open-source nature eliminates expensive licensing fees

  13. Flexible Data Integration

  14. Easy integration with various data sources and formats
  15. Supports real-time updates and automated data refreshes for always-current business metrics

Technologies

Streamlit Templates for Dashboards, Apps, Design and UI Streamlit Templates for Dashboards, Apps, Design and UI

Similar templates