Logo vun Chart Annotations

Chart Annotations

Communautéit
skthewimp
chart-annotations

Decide what to mark on a chart, how to rank competing candidates, how to word the label, and where to place it. Use when a chart needs on-chart annotation, callouts, direct labels for a key point, event markers, threshold lines, knee-bend or inflection labels, outlier calls, highlighted bars or points, or when a chart is finished but the reader cannot see the point without narration. Also use when annotation text is too long, too many things are marked, the label repeats the title, or a marked number is not tied to a stated baseline.

Iwwersiicht

Editeurskthewimp
Repositorykarthik-data-visualization-skill
Skill-Nummchart-annotations
Stären
49
Forks
5
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum skthewimp op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Chart Annotations an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/codex
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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/codex .claude/skills/chart-annotations
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Chart Annotations an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Chart Annotations automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Chart Annotations net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Chart Annotations?

Decide what to mark on a chart, how to rank competing candidates, how to word the label, and where to place it. Use when a chart needs on-chart annotation, callouts, direct labels for a key point, event markers, threshold lines, knee-bend or inflection labels, outlier calls, highlighted bars or points, or when a chart is finished but the reader cannot see the point without narration. Also use when annotation text is too long, too many things are marked, the label repeats the title, or a marked number is not tied to a stated baseline.

Firwat Chart Annotations op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Chart Annotations besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Chart Annotations an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/codex an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Chart Annotations benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Chart Annotations benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Chart Annotations domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Chart Annotations gratis?

Jo. De Skill gëtt vum skthewimp ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇