Chart Annotationsのロゴ

Chart Annotations

コミュニティ
skthewimp
chart-annotations

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

概要

公開者skthewimp
リポジトリkarthik-data-visualization-skill
スキル名chart-annotations
スター
49
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    skthewimpがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルChart AnnotationsをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/claude
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでChart Annotationsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にChart Annotationsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Chart Annotationsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「Chart Annotations」では何ができますか?

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

TypingMindでChart Annotationsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Chart Annotationsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにChart Annotationsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/claudeを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Chart Annotationsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Chart Annotationsは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもChart Annotationsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Chart Annotations」は無料ですか?

はい。skthewimpがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇