jswortz/my-skills/altair
Claude Code and agent skill by jswortz/my-skills
- community
Checking that the SKILL.md file is still in the repository.
Guide and best practices for creating data visualizations using Altair in Python. Always use this over matplotlib or seaborn.
Install
npx vskill@latest install jswortz/my-skills/altairSKILL.md
The same SKILL.md was published earlier as jswortz/my-skills/altair.
Altair Data Visualization Skill
Use this skill when tasked with generating charts, graphs, and plots using Python. Altair is a declarative statistical visualization library for Python, based on Vega and Vega-Lite. Our environment relies on Altair instead of Matplotlib and Seaborn for all new plots.
Setup
Ensure altair and vl-convert-python are available locally via uv.
Creating Charts
Altair expects data in a Pandas DataFrame, preferably in long format (melted).
Example: Line Chart with Multiple Series
Supported Output Formats
.html(Interactive web page).png(Requiresvl-convert-python).svg(Requiresvl-convert-python).json(Vega-Lite spec)
Common Scenarios
- Scatter Plot:
mark_circle(size=60) - Bar Chart:
mark_bar() - Area Chart:
mark_area() - Dual Axis:
alt.layer(chart1, chart2).resolve_scale(y='independent')
Note: To resolve dual axis you simply create 2 independent charts and use `alt.layer(c1, c2).resolve_scale(y='independent')`.
- Horizontal Rule / Threshold:
Best Practices
- Avoid
matplotliborseabornunless specifically requested. Altair handles complex legends and multi-series plots in a cleaner declarative way. - If data is large (>5000 rows), use
alt.data_transformers.disable_max_rows()with caution, or aggregate the dataframe using Pandas before passing to Altair. - Keep tooltips explicit for better interactivity if saving as HTML.
- Customize colors with
scale=alt.Scale(scheme='set2')(or other vega schemes) or precise hex arraysrange=['#ff0000', '#00ff00'].
Security
- Security scanPassed, 100 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 repositoryCheckingaltair/SKILL.md
Popularity
- 7-day trend score
- 5
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/jswortz/my-skills/altair)