displaying-streamlit-data

Guide Streamlit data presentation with charts, dataframes, and metrics.

224|23|Updated Jan 14, 2026
Ready to run
npx skills add https://github.com/streamlit/agent-skills --skill displaying-streamlit-data-streamlit
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: displaying-streamlit-data
Source: https://github.com/streamlit/agent-skills/tree/main/developing-with-streamlit/skills/displaying-streamlit-data
Command: npx skills add https://github.com/streamlit/agent-skills --skill displaying-streamlit-data-streamlit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Displaying data clearly and consistently in Streamlit apps by guiding how to visualize dataframes, charts, and metrics, and by outlining best practices for column configuration and sparklines.

Core Features & Use Cases

  • Native charts with simple APIs (st.line_chart, st.bar_chart, st.area_chart)
  • Dataframes and editors with formatting options (st.dataframe, st.data_editor)
  • Metrics and JSON displays for KPI insights (st.metric, st.json)
  • Column_config for enhanced data presentation and sparklines
  • Altair visuals for advanced charts when needed

Quick Start

Create a sample dataframe and render a line chart, a dataframe view, and a KPI metric to demonstrate basic data visualization in Streamlit

Frequently Asked Questions about displaying-streamlit-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display dataframes in Streamlit with custom formatting?▼

Display dataframes in Streamlit with custom formatting using st.dataframe and st.data_editor, applying column_config to enhance data presentation, modify column types, and render sparklines for compact trend visualization.

What is the best way to show KPI metrics and JSON data in a Streamlit dashboard?▼

The best way to show KPI metrics and JSON data in a Streamlit dashboard is using st.metric for KPI insights and st.json for structured data, ensuring clear and consistent data visualization across dashboard layouts.

Can I use Altair charts instead of native Streamlit charts for advanced visualizations?▼

Yes, you can use Altair charts for advanced visualizations when native Streamlit charts like st.line_chart, st.bar_chart, and st.area_chart are insufficient for your specific dashboard data presentation requirements.

How do sparklines work within Streamlit dataframe column configurations?▼

Sparklines in Streamlit dataframe column configurations work by integrating lightweight inline charts directly within st.dataframe or st.data_editor cells via column_config, providing compact visual trends without requiring separate full chart elements.

When should I use st.data_editor instead of st.dataframe in Streamlit?▼

Use st.data_editor instead of st.dataframe in Streamlit when your dashboard requires interactive data editing capabilities alongside standard formatting, allowing users to modify dataframe values directly within the presented visualization.