Logo van Dataviz Color

Dataviz Color

Community
skthewimp
dataviz-color

Kies kleuren voor een specifieke grafiek en wijs ze toe op basis van contrast, onderscheid tussen reeksen, zichtbaarheid bij CVD en in grijstinten, en nadruk met een accentkleur plus grijs. Een merkkleurenschema krijgt voorrang; WCAG is een richtlijn, geen harde eis.

Overzicht

Uitgeverskthewimp
Repositorykarthik-data-visualization-skill
Skillnaamdataviz-color
Sterren
49
Forks
5
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door skthewimp op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Dataviz Color in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/dataviz-color/claude
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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/dataviz-color/claude .claude/skills/dataviz-color
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Dataviz Color in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Dataviz Color automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Dataviz Color niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Dataviz Colour

Own the colour decision for one visualization: which colours to use and how to assign them to this chart's series or categories. This is a decision for the specific graph, not a palette look-up - even with a brand palette or recommended set in hand, a chart with N series and a given background still needs a call on which to use and how to assign them. Don't design the form, write annotations, or set number precision (those belong to karthik-data-visualization, chart-annotations, dataviz-precision).

The assignment arithmetic lives in the dataviz MCP as recommend_colours. Use it when the server is installed; without it, apply the same rules by hand (brand first, maximise separation between series while each reads on the background, then check contrast, colour-vision deficiency and grayscale by eye on the export). Keep the judgement here. Inside the construct pipeline, that judgement (available source, focal series, semantic meaning) is made at select as a compact colour_plan, resolved by recommend_colours, and applied at build - so this full skill is the standalone authority the plan distils, not a body loaded into the build call.

1. Where the available colours come from (precedence, higher wins)

  1. A brand or style skill, if installed. Scan the available-skills list for a name matching brand, style, design-system, theme, or palette; if one exists, invoke it and honour its palette and forbidden colours. The usual way a brand arrives.
  2. Colours or style guidance in the prompt/context - hex values, a named palette, "use our greens", a pasted style guide. Honour these too.
  3. Accessibility defaults when neither exists: colour-blind-safe starting palettes (Okabe-Ito, ColorBrewer, viridis).

Whatever wins defines the available set - the input to the decision, not the answer.

2. How many colours (max series per panel, not total categories)

Size the palette to the maximum number of series sharing a single panel that must be told apart by colour - a property of the form, not the total category count. N lines in one panel need N. Small multiples with k lines per panel need k (reused across panels), not the total across panels. Small multiples with one line per panel, direct labels, or position carrying identity need 0. Focal-plus-grey needs 1. Take that count as n_series (or use the count an upstream step handed you). When it's 0 there is no colour decision.

3. Always recommend for the specific graph

Call recommend_colours(available, colour_groups, background, focal, available_source=...). Pass where the set came from: brand and prompt colours (brand-skill, prompt) are spent first, exactly as given, and the tool only generates colours when there are more series than brand colours. A proposed set or hues read off a source image (source-extracted) are a prior: a colour that cannot be told apart from one already placed, or does not read on the background, is replaced by a generated one that can. It picks and assigns by maximising the minimum separation between series while keeping each readable against the background, and pins focal to the first series. The returned palette is ordered and prefix-nested (ordered_palette): the first m colours are themselves a good m-colour palette, so a panel with fewer series uses the first that many and the mapping stays consistent across panels. Read its rationale, shortfall, suggested_additions:

  • Available set too small for the series count → add the suggested additions/substitutions or collapse series, rather than reusing a hue.
  • Colours dropped for low background contrast → respect it; a light mark on a light ground is not a real option for a thin line (a large fill tolerates less).

Picking a subset from an available set is the normal case.

3a. Categorical series vs continuous magnitude - decide this first

Before calling anything, decide what colour encodes. Two different problems:

  • Categorical - colour tells apart series or categories (lines, bars, groups). N distinct colours. This is recommend_colours, everything above and below.
  • Continuous - colour encodes one ordered quantity (a heatmap/matrix fill, a choropleth, a colour-mapped value). This is not N series; it is a scale, chosen by hand with the rules below. Do not run a magnitude through recommend_colours - it collapses the variable to one series colour and judges the ramp's stops as if they were confusable series (a sequential ramp should have close neighbours). A heatmap of scores is the common trap.

For a continuous scale:

  • Sequential vs diverging. A one-sided magnitude (0-100 scores, counts, durations - higher is just more) has no intrinsic centre; sequential is the honest default. Reach for diverging when a midpoint carries meaning and separating low / middle / high aids the read - a signed quantity straddling zero, a value above/below a target, or a dense score matrix where a diverging ramp simply discriminates better. Diverging is often the better read for a matrix; choose it on that judgement, not by rote.
  • Midpoint from the data, never a constant. If an external reference exists (a target, a break-even, zero), that is the midpoint. Otherwise derive it from the data (the median), so the ramp splits these values, not an arbitrary 50. Diverge only when a real centre exists, or when you judge the split reads better for a score matrix.
  • Colours are recommended, not hardcoded. Poles come from the brand/context pool when there is one, chosen fresh only when there isn't. Never bake a fixed red-white-blue (or any fixed ramp) into the decision - let brand and background choose the hues. The two poles must stay apart in lightness so the extremes survive grayscale and CVD, and at least one end must read on the background.
  • Missing values are off the scale. NA cells get a distinct neutral, kept separate from a near-background diverging midpoint so an empty cell never reads as a mid-value one. Never leave missing cells to fall on a scale colour.

3b. Semantic colour - use it whenever it fits

When a series carries a colour meaning the reader already holds - a "loss" that reads red, an "ocean" that reads blue, a party or brand with a known colour - honour it; a semantically apt colour is understood before the legend. Reach for this by default when appropriate, and stand down only when something argues against it: the prompt or brand guidance says not to; the convention isn't shared by this audience (colour meaning is culture-relative - red is loss in US markets, gain in Indian and Chinese ones - so decide in context, never from a fixed table); or it costs accessibility (a red/green polarity collapsing under CVD - prefer blue/orange).

You own which series means what, and its away kit. Pass it as semantic_hints:

  • {"series_index": i, "colour": "#hex"} - a hard pin, for an exact colour (brand red, fixed party colour).
  • {"series_index": i, "hue_family": "blue"} - a soft family (the usual case): name the hue family and recommend_colours picks the nearest in-family colour from the available set, so brand and accessibility still shape the shade.
  • Add "alternates": [...] (colours or family words) as away kits for when a series' colour would clash.

Priority the tool enforces: (1) series stay distinguishable - the near-hard bar; (2) semantic meaning outranks accessibility - a soft family may take a low-contrast or CVD-weaker in-family colour and is honoured, not vetoed (the returned validation still flags it); (3) contrast/CVD/grayscale are soft diagnostics. Meaning wins over accessibility, but never at the cost of two series collapsing into one colour.

Away kits (the football rule). When two series' colours would clash, one keeps home and the other switches to an away kit - a different but still-its-own colour from alternates, not a mechanical darkening. Home is kept for hard pins, then focal, then the lower series_index; the clashing series takes the first away kit that separates. With no clearing away kit the tool keeps home and flags semantic_collision - it never silently reskins a series you didn't give an alternate for; supply one that still reads as its own, or merge the series. Read semantic_findings: semantic_unmet = no in-family colour available (add one or accept the separation pick); semantic_collision = resolve with an away kit. Hints make positions identity-bound, so the palette is no longer prefix-nested (prefix_nested: false) - expected. Use semantic colour where meaning earns a hue, not to colour every series.

4. Defaults and craft rules (when choosing freely)

  • Focal colour plus grey. One series focal; the rest muted grey context, unless every series genuinely competes for attention.
  • Adjacent regions differ in hue AND lightness - never hue alone, especially stacked or touching areas.
  • Don't rely on hue to carry meaning; avoid red-versus-green as the only distinction.
  • WCAG soft targets: ~4.5:1 normal text, 3:1 large text, 3:1 against background for small/thin essential marks. Diagnostic, not a gate.

5. Repair: source colours are a prior, not a rule

Read the source's dominant hues off the image. Treat them as a prior: feed them as the available set or a focal hint and keep the semantic mapping (which series a colour stands for), then override any specific hue freely for brand or accessibility. Preserve the mapping; don't defend the exact colours.

6. Validate and iterate

recommend_colours scores its own assignment and returns the result as validation: soft fails on background contrast, adjacent-series distinctness, CVD (deutan/protan/tritan), and grayscale, each with a concrete nudge. Act on them (lighten/darken to separate, or shift a hue, then pass the adjusted set back in as available) and look at the export once it is rendered. A soft_fail is guidance, not a stop - accessible multi-colour palettes on white are genuinely hard, so weigh the findings against how the chart is actually read.

Veelgestelde vragen

Wat doet de AI-skill Dataviz Color?

Kies kleuren voor een specifieke grafiek en wijs ze toe op basis van contrast, onderscheid tussen reeksen, zichtbaarheid bij CVD en in grijstinten, en nadruk met een accentkleur plus grijs. Een merkkleurenschema krijgt voorrang; WCAG is een richtlijn, geen harde eis.

Waarom Dataviz Color gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Dataviz Color bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Dataviz Color in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/dataviz-color/claude. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Dataviz Color gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Dataviz Color gebruiken?

Zoveel als je wilt. Je kunt Dataviz Color gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Dataviz Color gratis?

Ja. Deze skill is door skthewimp op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇