Skip to content
AI SkillIntermediatev1.0.1 Verified package

Data Visualization Skill

Choose the right chart for the question, generate accessible visuals with code, and write captions that state the actual finding.

AIAI Skills Hub EditorialEditorial team Published Apr 4, 2026Updated May 17, 2026 Reviewed May 17, 2026

Download this skill

3 files · SKILL.md + Python · License CC BY 4.0

AI Skills Hub original
  • SKILL.md

    3.0 KBv1.0.1skill md
    Download
  • skill.json

    1.3 KBv1.0.1manifest
    Download
  • chart_example.py

    1.2 KBv1.0.1python Executable
    Download

License: CC BY 4.0. Only download and use files you are licensed to use.

This resource includes executable scripts. Review the code before running it, run it in an isolated environment, and never pass secrets you do not intend to share with the script.

A chart is an argument

Every chart makes a claim. A line rising to the right claims improvement; a bar twice as tall claims twice the magnitude. If the encoding does not support the claim, the chart is misleading even when every number is correct.

This skill starts with the question, then chooses the encoding, then writes the caption. The order matters. Starting with a chart type encourages decoration; starting with a question encourages evidence.

Small choices that change the message

  • Starting a bar axis above zero exaggerates differences.
  • A dual axis can make two unrelated series look correlated.
  • Aggregating to monthly averages can hide a spike that matters operationally.
  • A rainbow palette implies categories are ordered when they are not.
  • Missing a denominator turns “5 cancellations” into a meaningless rate.

Review the chart like an editor

Show the chart to someone who does not know the analysis and ask what they conclude. If their conclusion differs from yours, the chart is ambiguous. Add a direct label, simplify the series, or change the encoding.

Use alt text for the finding, not the file type: “Conversion was highest on Plan A (42%, n=120) and lowest on Plan C (18%, n=74)” is useful; “bar chart” is not.

Keep the code

Generated charts should be reproducible. Keep the script, the input data and the output image together. When the data updates, rerun the script rather than editing the image by hand.

At a glance

Difficulty
Intermediate
Platforms
ChatGPT, Claude, Python
File format
SKILL.md + Python
License
CC BY 4.0
Version
1.0.1
Last reviewed
May 17, 2026
Source
AI Skills Hub original
Access
Free

What it does

Capabilities included in this package.

  • Chart selection guide by question type
  • Accessible colour and labelling checklist
  • Reproducible matplotlib example
  • Caption template that separates observation from interpretation

Requirements

Check these before you start.

  • Python 3.10+
  • matplotlib installed
  • A cleaned dataset
  • A clear question the chart should answer

Installation

Set up the skill in a working folder before you use it on real material.

  1. 1

    Download the skill

    Save SKILL.md and the example chart script.

  2. 2

    Install matplotlib

    Use a virtual environment.

    python -m pip install matplotlib

How to use it

A reviewed sequence that keeps a person in the loop.

  1. 1

    Write the question first

    “Did conversion improve after the change?” is a question. “Make a chart of conversion” is not.

  2. 2

    Pick the encoding

    Trend over time: line. Comparison across categories: bar. Distribution: histogram or strip plot. Relationship: scatter. Avoid pie charts for more than three slices.

  3. 3

    Start the axis at zero for bars

    Bar length encodes magnitude, so a truncated axis distorts the comparison. Line charts may use a non-zero baseline when the change is the point, but label it clearly.

  4. 4

    Label directly

    Put labels near the data instead of forcing the reader to match colours in a legend. Check contrast and do not rely on red/green alone.

  5. 5

    Write the caption

    State what the chart shows, the time period, the denominator and one caveat. Do not write “conversion increased significantly” without a statistical basis.

Use cases

Tasks this skill is designed for.

  • Show a trend without exaggerating a small change
  • Compare categories without hiding sample size
  • Create a chart that remains readable in dark mode and print

Worked examples

Before/after comparison

Use two bars with sample sizes in the labels and a note about the comparison window. If the change is within normal variation, say that.

Distribution check

A bar chart of averages can hide a bimodal distribution. Plot the underlying points when the sample is small enough.

Security and privacy

Read this before running any downloaded script or sending material to an AI provider.

Treat downloaded code and extracted text as untrusted

If the data is sensitive, generate charts locally and share only aggregated outputs. Chart images can still leak labels, file paths or customer names. Inspect the rendered output before publishing.

Version history

  1. v1.0.1

    Initial reviewed release.

    Apr 4, 2026

Frequently asked questions

Related resources

Spotted something out of date? Suggest the fix and an editor will review it.