DataViz AI Assistant Skill

SkillAI & models

Generate data visualization charts (line, scatter, bar, stem, fill-between, stackplot, stairs) from natural language descriptions using an LLM-powered matplotlib pipeline. Supports 7 chart types via OpenAI-compatible APIs.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the DataViz AI Assistant Skill skill

What this skill tells your AI

The instructions your AI receives, as published by alexisz12/datavizaiassistant in skill/dataviz-ai/SKILL.md and read by ahel’s review.

Generate matplotlib charts from natural language descriptions using a multi-stage LLM pipeline. The skill analyzes your request, extracts data, designs the visual style, and outputs a PNG image.

Usage

python scripts/dataviz_ai.py "your chart description" [-o output.png]
ArgumentRequiredDescription
descriptionYesNatural language description of the chart
-o, --outputNoOutput image path (default: temp file)

All diagnostic messages go to stderr. Only the image path is printed to stdout.

Example

python scripts/dataviz_ai.py \
  "2024年各月销售额趋势,1月100,2月200,3月150,4月300,5月250,6月400"

python scripts/dataviz_ai.py \
  "画出上海和北京各季度GDP对比" -o ./gdp_chart.png

Environment Variables

All three variables are required:

VariableDescription
DATAVIZ_AI_API_KEYAPI key for the LLM service
DATAVIZ_AI_BASE_URLBase URL for OpenAI-compatible API
DATAVIZ_AI_MODELModel name to use

Supported Chart Types

IDTypeBest for
0line plotTrends and continuous data
1scatter plotRelationships, outliers, correlation
2bar chartComparing categories
3stem plotDiscrete data points with structure
4fill betweenAreas between curves, uncertainty bands
5stackplotMultiple series over a shared axis
6stairs plotStep changes, segmented data

How It Works

  1. Phase 1 — LLM selects the best chart type (0-6) for the request
  2. Phase 2 — LLM extracts structured data (x, y values, labels) from the description
  3. Phase 3-5 — LLM designs style (markers/colors/line styles), axis ranges, and labels (title, axis labels) in parallel
  4. Phase 6 — Matplotlib renders the chart and saves it as PNG

Dependencies

  • openai
  • matplotlib
  • numpy

Signals

GitHub stars
103
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
dataviz-ai
Source
github.com/alexisz12/datavizaiassistant