Chart Annotations logo

Chart Annotations

Community
skthewimp
chart-annotations

Choose, rank, word, and place chart annotations without clutter.

Overview

Publisherskthewimp
Repositorykarthik-data-visualization-skill
Skill namechart-annotations
Stars
49
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by skthewimp on GitHub. Read the source before you install it.

Installation

Install the Chart Annotations AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/claude
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skthewimp/karthik-data-visualization-skill.git /tmp/karthik-data-visualization-skill
mkdir -p .claude/skills
cp -r /tmp/karthik-data-visualization-skill/chart-annotations/claude .claude/skills/chart-annotations
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Chart Annotations in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Chart Annotations on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Chart Annotations is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Chart Annotations

Own on-chart annotation selection, wording, visual weight, and placement. Do not choose the chart form, global visual system, adjacent explanatory note, critique structure, or release verdict; those belong to dataviz-selector, karthik-data-visualization, chart-explainer, dataviz-critique, and dataviz-eval.

Use this when a chart exists or is being built and the reader should not have to infer the point. Annotation is not decoration and not a caption. It is the act of marking the specific evidence that carries the claim.

This skill covers four decisions: what to mark, which candidate wins, how to word it, where to put it.

Division of labour: title vs annotation

The title states the claim in words. The annotation locates it on the chart.

Do not write the same sentence twice.

text
Title:       Haryana saw the sharpest per-capita jump
Annotation:  +38%          <- placed at the Haryana point

If the annotation is a full sentence restating the title, cut it to the locating fragment. If the title is a neutral chart description while the annotation carries the whole argument, move the claim up into the title.

They must be the same claim. The opposite failure to repetition is divergence: a title about the whole cloud ("cities with low literacy are also the least equal") with an annotation about a subgroup ("Rajasthan holds 12 of the 20 widest gaps"). Both may be true, and the chart still fails, because the reader is handed two findings and told which to care about by neither. Decide which claim the chart is making, put it in the title, and mark the evidence for that one. The other claim is a second chart.

Exception: a chart designed to travel alone with no title bar or surrounding text may carry the claim in the annotation. State that this is the case before doing it.

Workflow

  1. Write the one-sentence claim the chart must support.
  2. Enumerate annotation candidates from the chart's geometry.
  3. Run the concentration check.
  4. Rank candidates by relevance to the chart's claim, evidentiary strength, reader payoff, and visual salience.
  5. Select only as many as the chart can support without competing claims; there is no universal count.
  6. Write each label so it identifies the evidence and qualifies the claim appropriately.
  7. Place by proximity, with coordinates derived from the data; add a connector only if proximity fails.
  8. Render, inspect the image, fix collisions.

Step 2: candidate inventory

Look at the rendered shape, not the summary statistics. Candidates:

  • knee-bend or visible slope change; inflection point
  • local maximum or minimum; temporary peak or trough
  • crossover where two series swap order
  • threshold breach; record or boundary value
  • start and end of a run or streak
  • event date with a visible before/after difference
  • outlier far from the pattern
  • the gap between two series at a specific point
  • first or last observation when the endpoint is the point

An absence - no trend, no gap, no change - is a finding, but it is not a candidate here. It goes in the title and gets no mark (see "When nothing clears the bar").

Separate observed candidates from derived ones as you list them. A record year, a crossover, and an actual gap are observed - they are in the data. A knee from a breakpoint scan, a trend slope, a smoothed peak, a cluster boundary are derived - they are outputs of a model you chose. Derived features are annotatable, but they carry a higher bar (see "Annotating derived features").

Step 3: concentration and candidate strength

Before annotating an aggregate or apparent feature, inspect how the evidence is distributed, concentrated, and uncertain. If a subset materially changes the interpretation, expose it. Choose thresholds and robustness checks appropriate to the metric and claim rather than applying fixed percentages or universal tests.

Rank candidates by relevance to the stated claim, evidentiary strength, interpretive value, and visual salience. Records, departures, events, persistence, gaps, and other features are candidate classes, not a fixed hierarchy.

Distinguish observed description, exploratory signal, and inferential claim. Annotate a feature when it is relevant and accurately qualified; use uncertainty, sensitivity checks, or tentative wording when evidence is limited. If no feature clears the claim's evidentiary and communication bar, leave the chart unmarked and state the absence in the title or accompanying explanation.

Annotating derived features

  • Validate before marking. A breakpoint, trend, smoothed peak, or cluster boundary is a chosen or model-derived feature; test sensitivity or word it as approximate.
  • A split point chosen by eye is derived too. Test it or describe it as approximate, and describe both sides honestly.
  • Word it with the uncertainty the method carries. "around the mid-1950s" is honest for a scanned breakpoint; "in 1956" claims a precision the method does not have. Do not put a bare year on a derived knee unless the year is itself the result.
  • Keep the evidence visible. A fitted or smoothed layer must not become more persuasive than the observations it summarizes.

Step 5: how many

Maintain a clear primary focus, but size the annotation set to the density, medium, and traceability needs. Additional labels are acceptable when they improve identification without creating clutter; split the chart when competing claims cannot be separated.

Contrast pairs are one annotation, not two. When a claim is inherently about two ends - the highest and the lowest, the state that breaks the pattern against the one that follows it - the two labels are halves of a single point and share equal weight. Do not tier them into primary and supporting; that would say one end matters more, when the comparison is the finding. A contrast pair spends the primary slot, leaving one supporting annotation.

Orienting labels are a separate class and do not count against the cap: series names, period labels, axis units, a legend replacement. They must still be collision-checked against the claim annotations - a period label sitting on top of the primary annotation is the same defect as two annotations overlapping.

Step 6: writing the label

Every number and every comparative word in a label must be computed, never typed.

Position is not the only thing that drifts. A hand-typed count that was right when you wrote it is wrong after a filter changes, and nothing in the chart will tell you. Build the label string from the same computation that produced the mark:

r
mutate(lbl = paste0("Rajasthan: ", sum(top$state == "Rajasthan"),
                    " of the 20 widest gaps"))

Comparative words are quantitative claims wearing plain clothes. flat, unchanged, steady, stagnant, doubled, tripled, halved, no different, as many as - each one asserts a number and each one needs the number checked before it goes in the label. "Flat for the 45 years before" is a testable statement; if the pre-period slope is 1.5 points per decade at p = 0.0002, the label is false and the chart is worse than unannotated, because it invents a plateau the reader will believe.

Keep each label concise, single-purpose, and audience-appropriate. Tie numbers to their relevant baseline and window; qualify causal or inferential language; do not impose a universal word count or editorial vocabulary.

Step 7: placement

  • Anchor data-linked labels to the underlying data or chart geometry so they remain correct under filtering, sorting, and rescaling. Literal coordinates are valid when the annotation is intentionally independent of a data observation, such as chart furniture or a fixed reference caption.

Build a small annotation frame filtered from the plotting data, compute the offset from the value being labelled, and let the plotting layer position it:

r
ann <- d %>%
  filter(state %in% c("Haryana", "Andhra Pradesh", "Tamil Nadu")) %>%
  mutate(tier  = if_else(state == "Haryana", "primary", "supporting"),
         x     = pc_2026 + 40,                      # offset from the point itself
         label = paste0("+Rs ", round(delta_pc)))

geom_text(data = filter(ann, tier == "supporting"),
          aes(x = x, y = state_f, label = label), hjust = 0, ...)

The label text is computed from the same columns as the mark, so the number and its position cannot disagree. annotate() with literal coordinates is fine for chart furniture - a period label, a band caption - but not for anything pointing at a specific observation.

Derive the anchor, then offset into whitespace. A derived coordinate is the right anchor and usually the wrong resting place. Labelling a group of points at its centroid puts the text in the densest part of the cloud, where it is least readable - the centroid is the worst position available. Anchor on the group, then push the label to the outside edge of the cloud, into space no point occupies.

Use the least distracting treatment that preserves label-to-mark association and legibility. Choose bare text, a halo, box, fill, or connector based on background, density, contrast, and medium.

  • Preserve direct links between labels and the marks or groups they describe. Use a connector only when proximity and layout do not make the relationship clear.
  • A connector must never cross other data.
  • Text must never sit on top of data, gridlines, or another label.
  • If no honest placement exists, change the chart - widen margins, expand the axis range, move the panel - before dropping the annotation.
  • Reserve room for the text when setting scale limits, on every edge the text can reach. Labels clip left, right, top and bottom, and a centred label on a point near an axis extreme clips on whichever side it overhangs. Extend the limits in the direction the text runs and set clipping off; do not discover the clip after rendering.

Visual weight

Two tiers:

  • Primary: accent colour, bold, slightly larger. The data element it points at also takes the accent.
  • Supporting: grey, regular weight, smaller than the axis labels. Context only.

Never let annotation text outweigh the data mark it explains. Grey carries context; the single accent carries the story.

Step 8: render and inspect - mandatory

Placement cannot be verified from code. Export the image and look at it.

Check:

  • Is any text clipped at a panel edge, or running past the figure boundary?
  • Does each label sit on the row or point it describes? Check one label against the underlying number by hand. A label one row off looks perfectly fine.
  • Does any label overlap data, another label, or an axis?
  • Is the primary annotation visibly the loudest thing after the data itself?
  • At final output size, is the smallest annotation still legible?
  • Does the eye land on the primary annotation before the supporting ones?

Fix and re-render. Do not declare done from code inspection.

Common mistakes

MistakeFix
Annotation repeats the title verbatimCut to the locating fragment
Aggregate annotated when a burst explains itRun the concentration check
Five things marked because five are interestingCap at 1 + 2; split the chart
Floating number with no baselineAttach the comparator in the same label
Causal claim from a coincidenceUse "followed", or drop the annotation
Boxed callout with a fillBare text in whitespace
Annotation louder than the dataMove accent to the data mark
Label attached to the neighbouring rowDerive coordinates from the data, not by hand
Largest wiggle in a noisy series promoted to a findingAsk whether it survives a different sample; if it fails, mark nothing
Callout announcing that nothing is happeningPut the absence in the title; leave the chart unmarked
Bare year on a knee found by scanningWord it as approximate, or validate first
Fitted line louder than the observationsChart argues for the model; requiet the fit
Share language on a rank findingCompute the share before writing the claim
Text clipped at any panel edgeReserve axis headroom in the direction the text runs
Hand-typed count in the label textBuild the label string from the same computation as the mark
"Flat", "doubled", "unchanged" asserted but never testedComparative words are numbers; check them
Split point chosen by eye, then described as foundTest it, or word it loosely; describe both segments honestly
Group label parked at the cluster centroidAnchor on the group, offset to the outside edge
Title claims one thing, annotation marks anotherPick one claim; the other is a second chart
Declared done without renderingExport and inspect

Relationship to other skills

Use dataviz-selector first if the chart form is still open. Use karthik-data-visualization for palette, typography, and the surrounding chart style. Use dataviz-critique when reviewing someone else's annotated chart. Use dataviz-fix when the whole chart enters a repair loop. dataviz-orchestrator calls this skill at the charting step.

Frequently asked questions

What does the Chart Annotations AI skill do?

Choose, rank, word, and place chart annotations without clutter.

Why use Chart Annotations on TypingMind?

Because you install it once and use it with any model. Chart Annotations is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Chart Annotations in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/claude. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Chart Annotations?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Chart Annotations?

As many as you like. As long as a model supports skills, you can use Chart Annotations with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Chart Annotations AI skill free?

Yes. It is published on GitHub by skthewimp under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇