legout/pi-config/displaying-streamlit-data
Claude Code and agent skill by legout/pi-config
- community
Checking that the SKILL.md file is still in the repository.
Displaying charts, dataframes, and metrics in Streamlit. Use when visualizing data, configuring dataframe columns, or adding sparklines to metrics. Covers native charts, Altair, and column configuration.
Install
npx vskill@latest install legout/pi-config/displaying-streamlit-dataSKILL.md
The same SKILL.md was published earlier as ddtully/dotfiles/displaying-streamlit-data.
Streamlit charts & data
Present data clearly.
Choosing display elements
| Element | Use Case | |
|---|---|---|
st.dataframe | Interactive exploration, sorting, filtering | |
st.data_editor | User-editable tables | |
st.table | Static display, no interaction needed | |
st.metric | KPIs with delta indicators | |
st.json | Structured data inspection |
Native charts first
Prefer Streamlit's native charts for simple cases.
Native charts support additional parameters: color for series grouping, stack for bar/area stacking, size for scatter point sizing, horizontal for horizontal bars. See the chart API reference for full options.
Human-readable labels
Use clear labels—not column names or abbreviations. Skip x_label/y_label if the column names are already readable.
Altair for complex charts
Use Altair when you need more control. Altair is bundled with Streamlit (no extra install), while Plotly requires an additional package. Pick one and stay consistent throughout your app.
When to use Altair:
- Custom axis formatting
- Multiple series with legends
- Interactive tooltips
- Layered visualizations
Dataframe column configuration
Use column_config where it adds value—formatting currencies, showing progress bars, displaying links or images. Don't add config just for labels or tooltips that don't meaningfully improve readability. Works with both st.dataframe and st.data_editor.
Note on hiding columns: Setting a column to None hides it from the UI, but the data is still sent to the frontend. For truly sensitive data, pre-filter the DataFrame before displaying.
Dataframe best practices:
- Hide useless index:
hide_index=True - Or make index meaningful:
df = df.set_index("customer_name")before displaying - Hide internal/technical columns: Set column to
Nonein config (but pre-filter for sensitive data) - Use visual column types where they help: sparklines for trends, progress bars for completion, images for logos
Column types:
AreaChartColumn→ Area sparklinesBarChartColumn→ Bar sparklinesCheckboxColumn→ Boolean as checkboxDateColumn→ Date only (no time)DatetimeColumn→ Dates with formattingImageColumn→ ImagesJSONColumn→ Display JSON objectsLineChartColumn→ Sparkline chartsLinkColumn→ Clickable linksListColumn→ Display lists/arraysMultiselectColumn→ Multi-value selectionNumberColumn→ Numbers with formattingProgressColumn→ Progress barsSelectboxColumn→ Editable dropdownTextColumn→ Text with formattingTimeColumn→ Time only (no date)
Pinned columns
Keep important columns visible while scrolling horizontally:
Data editor
Use st.data_editor when users need to edit data directly:
JSON display
For structured data inspection. Accepts dicts, lists, or any JSON-serializable object:
Sparklines in metrics
Add chart_data and chart_type to metrics for visual context.
Note: Sparklines only show y-values and ignore x-axis spacing. Use them for evenly-spaced data (like daily or weekly snapshots). For irregularly-spaced time series, use a proper chart instead.
See building-streamlit-dashboards for composing metrics into dashboard layouts.
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginstalled-skills/developing-with-streamlit/skills/displaying-streamlit-data/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/legout/pi-config/displaying-streamlit-data)