[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGGGZ9THQDXJ9451TJQT64":3,"skill-same:01M6KGGGZ9THQDXJ9451TJQT64":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6KGGGZ9THQDXJ9451TJQT64","building-streamlit-dashboards",null,"Building dashboards in Streamlit. Use when creating KPI displays, metric cards, or data-heavy layouts. Covers borders, cards, responsive layouts, and dashboard composition.","legout\u002Fpi-config","legout","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1469563?v=4","01M6KGERP7E8TF4XARRKPFJ6HQ","Volker L.","01M6KGERT1FYD049PP1WW923TZ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fbuilding-streamlit-dashboards\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34],"dashboards","streamlit","building streamlit dashboards","building dashboards","dashboard","data","kpi","Composition","use","responsive","metric","2026-11-10 10:12:30",false,"---\nname: building-streamlit-dashboards\ndescription: Building dashboards in Streamlit. Use when creating KPI displays, metric cards, or data-heavy layouts. Covers borders, cards, responsive layouts, and dashboard composition.\nlicense: Apache-2.0\n---\n\n# Streamlit dashboards\n\nCompose metrics, charts, and data into clean dashboard layouts.\n\n## Cards with borders\n\nUse `border=True` to create visual cards. Supported on `st.container`, `st.metric`, `st.columns`, and `st.form`:\n\n```python\n# Container card\nwith st.container(border=True):\n    st.subheader(\"Sales Overview\")\n    st.line_chart(sales_data)\n\n# Metric card\nst.metric(\"Revenue\", \"$1.2M\", \"+12%\", border=True)\n\n# Column cards\nfor col in st.columns(3, border=True):\n    with col:\n        st.metric(\"Users\", \"1.2k\")\n```\n\n## Card labels\n\nAdd context to cards with headers or bold text:\n\n```python\n# With subheader\nwith st.container(border=True):\n    st.subheader(\"Monthly Trends\")\n    st.line_chart(data)\n\n# With bold label\nwith st.container(border=True):\n    st.markdown(\"**Top Products**\")\n    st.dataframe(top_products)\n```\n\n## KPI rows\n\nUse horizontal containers for responsive metric rows:\n\n```python\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True)\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True)\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True)\n```\n\nHorizontal containers wrap on smaller screens. Prefer them over `st.columns` for metric rows.\n\n## Metrics with sparklines\n\nAdd trend context with `chart_data`:\n\n```python\nweekly_values = [700, 720, 715, 740, 762, 755, 780]\n\nst.metric(\n    \"Active Users\",\n    \"780k\",\n    \"+3.2%\",\n    border=True,\n    chart_data=weekly_values,\n    chart_type=\"line\",  # or \"bar\"\n)\n```\n\nSparklines show y-values only—use for evenly-spaced data like daily\u002Fweekly snapshots.\n\n## Dashboard layout\n\nCombine cards into a dashboard:\n\n```python\n# KPI row\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True, chart_data=rev_trend, chart_type=\"line\")\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True, chart_data=user_trend, chart_type=\"line\")\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True, chart_data=order_trend, chart_type=\"bar\")\n\n# Charts row\ncol1, col2 = st.columns(2)\nwith col1:\n    with st.container(border=True):\n        st.subheader(\"Revenue by Region\")\n        st.bar_chart(region_data, x=\"region\", y=\"revenue\")\n\nwith col2:\n    with st.container(border=True):\n        st.subheader(\"Monthly Trend\")\n        st.line_chart(monthly_data, x=\"month\", y=\"value\")\n\n# Data table\nwith st.container(border=True):\n    st.subheader(\"Recent Orders\")\n    st.dataframe(orders_df, hide_index=True)\n```\n\n## Sidebar filters\n\nPut filters in the sidebar to maximize dashboard space:\n\n```python\nwith st.sidebar:\n    date_range = st.date_input(\"Date range\", value=(start, end))\n    region = st.multiselect(\"Region\", regions, default=regions)\n    \n# Main area is all dashboard content\n```\n\n## Dashboard templates\n\nReady-to-use dashboard templates are available in `templates\u002Fapps\u002F`:\n\n| Template | Features |\n|----------|----------|\n| `dashboard-metrics` | Metric cards with sparklines, date filtering, focus mode |\n| `dashboard-metrics-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-companies` | Company comparison, filterable data tables |\n| `dashboard-compute` | `@st.fragment` for independent updates, popover filters |\n| `dashboard-compute-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-feature-usage` | Feature adoption tracking, trend analysis |\n| `dashboard-seattle-weather` | Weather data visualization |\n| `dashboard-stock-peers` | Stock peer comparison |\n| `dashboard-stock-peers-snowflake` | Same as above, with Snowflake connection |\n\nEach template uses synthetic data that can be replaced with real queries. See `templates\u002Fapps\u002FREADME.md` for setup instructions.\n\n## Related skills\n\n- `using-streamlit-layouts`: Columns, containers, tabs, dialogs\n- `displaying-streamlit-data`: Charts, dataframes, column configuration\n- `optimizing-streamlit-performance`: Caching and fragments for heavy dashboards\n\n## References\n\n- [st.container](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.container)\n- [st.metric](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Fdata\u002Fst.metric)\n- [st.columns](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.columns)\n","# Streamlit dashboards\n\nCompose metrics, charts, and data into clean dashboard layouts.\n\n## Cards with borders\n\nUse `border=True` to create visual cards. Supported on `st.container`, `st.metric`, `st.columns`, and `st.form`:\n\n```python\n# Container card\nwith st.container(border=True):\n    st.subheader(\"Sales Overview\")\n    st.line_chart(sales_data)\n\n# Metric card\nst.metric(\"Revenue\", \"$1.2M\", \"+12%\", border=True)\n\n# Column cards\nfor col in st.columns(3, border=True):\n    with col:\n        st.metric(\"Users\", \"1.2k\")\n```\n\n## Card labels\n\nAdd context to cards with headers or bold text:\n\n```python\n# With subheader\nwith st.container(border=True):\n    st.subheader(\"Monthly Trends\")\n    st.line_chart(data)\n\n# With bold label\nwith st.container(border=True):\n    st.markdown(\"**Top Products**\")\n    st.dataframe(top_products)\n```\n\n## KPI rows\n\nUse horizontal containers for responsive metric rows:\n\n```python\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True)\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True)\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True)\n```\n\nHorizontal containers wrap on smaller screens. Prefer them over `st.columns` for metric rows.\n\n## Metrics with sparklines\n\nAdd trend context with `chart_data`:\n\n```python\nweekly_values = [700, 720, 715, 740, 762, 755, 780]\n\nst.metric(\n    \"Active Users\",\n    \"780k\",\n    \"+3.2%\",\n    border=True,\n    chart_data=weekly_values,\n    chart_type=\"line\",  # or \"bar\"\n)\n```\n\nSparklines show y-values only—use for evenly-spaced data like daily\u002Fweekly snapshots.\n\n## Dashboard layout\n\nCombine cards into a dashboard:\n\n```python\n# KPI row\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True, chart_data=rev_trend, chart_type=\"line\")\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True, chart_data=user_trend, chart_type=\"line\")\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True, chart_data=order_trend, chart_type=\"bar\")\n\n# Charts row\ncol1, col2 = st.columns(2)\nwith col1:\n    with st.container(border=True):\n        st.subheader(\"Revenue by Region\")\n        st.bar_chart(region_data, x=\"region\", y=\"revenue\")\n\nwith col2:\n    with st.container(border=True):\n        st.subheader(\"Monthly Trend\")\n        st.line_chart(monthly_data, x=\"month\", y=\"value\")\n\n# Data table\nwith st.container(border=True):\n    st.subheader(\"Recent Orders\")\n    st.dataframe(orders_df, hide_index=True)\n```\n\n## Sidebar filters\n\nPut filters in the sidebar to maximize dashboard space:\n\n```python\nwith st.sidebar:\n    date_range = st.date_input(\"Date range\", value=(start, end))\n    region = st.multiselect(\"Region\", regions, default=regions)\n    \n# Main area is all dashboard content\n```\n\n## Dashboard templates\n\nReady-to-use dashboard templates are available in `templates\u002Fapps\u002F`:\n\n| Template | Features |\n|----------|----------|\n| `dashboard-metrics` | Metric cards with sparklines, date filtering, focus mode |\n| `dashboard-metrics-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-companies` | Company comparison, filterable data tables |\n| `dashboard-compute` | `@st.fragment` for independent updates, popover filters |\n| `dashboard-compute-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-feature-usage` | Feature adoption tracking, trend analysis |\n| `dashboard-seattle-weather` | Weather data visualization |\n| `dashboard-stock-peers` | Stock peer comparison |\n| `dashboard-stock-peers-snowflake` | Same as above, with Snowflake connection |\n\nEach template uses synthetic data that can be replaced with real queries. See `templates\u002Fapps\u002FREADME.md` for setup instructions.\n\n## Related skills\n\n- `using-streamlit-layouts`: Columns, containers, tabs, dialogs\n- `displaying-streamlit-data`: Charts, dataframes, column configuration\n- `optimizing-streamlit-performance`: Caching and fragments for heavy dashboards\n\n## References\n\n- [st.container](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.container)\n- [st.metric](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Fdata\u002Fst.metric)\n- [st.columns](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.columns)\n",{"name":5,"license":15,"description":7},"main","3efae68c898153694a2f4aad309c7ff9847b5602","installed-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fbuilding-streamlit-dashboards",0,"https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config","https:\u002F\u002Fgithub.com\u002Flegout","2026-04-28 16:32:33",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add legout\u002Fpi-config --skill building-streamlit-dashboards",{"tool":53,"command":54},"bunx","bunx skills add legout\u002Fpi-config --skill building-streamlit-dashboards",{"tool":56,"command":57},"pnpm","pnpm dlx skills add legout\u002Fpi-config --skill building-streamlit-dashboards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fbuilding-streamlit-dashboards\u002FSKILL.md",true,[],[62,95,122,137,155,176],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":66,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":75,"publishedAt":35},"01M6KGW7MYKZ8MWFKN1V8ZJ2EG","visual-explainer","Generate beautiful, self-contained HTML pages that visually explain systems, code changes, plans, and data. Use when the user asks for a diagram, architecture overview, diff review, plan review, project recap, comparison table, or any visual explanation of technical concepts. Also use proactively when you are about to render a complex ASCII table (4+ rows or 3+ columns) — present it as a styled HTML page instead.","MIT","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-explainer\u002FSKILL.md",[69,74],{"categoryNo":70,"categoryName":71,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[76,77,78,79,80,81,82,83,84,32,85,86,87,88,89,90,91,92,93,94],"visual explainer","explainer","visual","image","architecture","generate","plan","table","view","files","project","present","as","ascii table","ascii","you","concepts","surf","for",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":66,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":107,"publishedAt":35},"01M6KGTMTJR6RXXC8AF29MQQW5","table-extractor",">","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Ftable-extractor\u002FSKILL.md",[101,104],{"categoryNo":102,"categoryName":103,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000002","文档处理",{"categoryNo":105,"categoryName":106,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000023","Skill与智能体开发",[83,108,109,110,111,112,113,29,114,115,116,117,118,119,120,121],"table extractor","PDF","MCP","gpt","extraction","office","parsing","extract","en","zh","camelot","sonnet","opus","tables",{"skillNo":123,"name":124,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":66,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":129,"publishedAt":35},"01M6KGSWF2R22Z63PAY5NT6GRY","smart-ocr","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fsmart-ocr\u002FSKILL.md",[127,128],{"categoryNo":102,"categoryName":103,"taxonomyType":72,"taxonomyTypeDesc":73},{"categoryNo":105,"categoryName":106,"taxonomyType":72,"taxonomyTypeDesc":73},[130,131,109,110,132,111,112,113,114,133,115,116,117,134,135,119,120,136],"ocr","smart ocr","support","text","multilingual","processing","paddleocr",{"skillNo":138,"name":139,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":66,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":147,"publishedAt":35},"01M6KGMKKFNC1PRNX2W3E243DR","html-slides","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fhtml-slides\u002FSKILL.md",[142,145,146],{"categoryNo":143,"categoryName":144,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":70,"categoryName":71,"taxonomyType":72,"taxonomyTypeDesc":73},{"categoryNo":105,"categoryName":106,"taxonomyType":72,"taxonomyTypeDesc":73},[148,149,150,151,110,152,111,113,116,117,153,154,119,120],"slides","html","html slides","pptx","web","revealjs","presentation",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":35},"01M6KGJGVM0TWW632Y6VQQV2WN","using-streamlit-session-state","Using st.session_state to manage state across Streamlit reruns. Use when persisting data, handling widget state, implementing callbacks, or debugging state issues. Covers initialization patterns, widget-state association, and common gotchas.","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fusing-streamlit-session-state\u002FSKILL.md",[],[162,163,25,164,165,166,167,29,168,32,169,170,171,172,173,174,175],"state","session","session state","using streamlit session state","debugging","issues","common","manage","patterns","across","widget","Callbacks","implementing","initialization",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":183,"publishedAt":35},"01M6KGJD12GJB7W0ZG66JK00F6","using-streamlit-markdown","Covers all Markdown features in Streamlit including GitHub-flavored syntax plus Streamlit extensions like colored text, badges, Material icons, and LaTeX. Use when formatting text, labels, tooltips, or any text-rendering element.","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fusing-streamlit-markdown\u002FSKILL.md",[182],{"categoryNo":102,"categoryName":103,"taxonomyType":72,"taxonomyTypeDesc":73},[184,25,185,186,187,188,133,189,32,190,191,192,193,194,195,196],"markdown","using streamlit markdown","github","icons","LaTeX","syntax","formatting","element","material","rendering","extensions","features","labels"]