Logo de Chart Annotations

Chart Annotations

Comunidade
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.

Visão geral

Publicado porskthewimp
Repositóriokarthik-data-visualization-skill
Nome da habilidadechart-annotations
Estrelas
49
Forks
5
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por skthewimp no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Chart Annotations no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/codex
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Chart Annotations em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Chart Annotations automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Chart Annotations não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Chart Annotations faz?

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.

Por que usar Chart Annotations no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Chart Annotations é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Chart Annotations no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/codex. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Chart Annotations?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Chart Annotations?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Chart Annotations com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Chart Annotations é gratuita?

Sim. A habilidade é publicada no GitHub por skthewimp sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇