kmaruthi2002/universal-llm-skills/data-visualization

Claude Code and agent skill by kmaruthi2002/universal-llm-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Turn data into charts that answer a specific question honestly and fast: choose the chart form from the comparison being made, build an encoding hierarchy, use color for meaning (categorical, sequential, diverging) with colorblind safety, label directly, keep axes honest, use small multiples, annotate the insight, and avoid misleading charts — with styling derived from the destination (report, slide, app, publication, brand) rather than a default. Use when someone asks for a chart, graph, plot or figure, which chart type to use, to improve or critique a chart, to pick chart colors, or to visualise results — in any library or tool (matplotlib, ggplot2, Vega, D3, Plotly, Excel, BI tools). For multi-chart monitoring views see dashboard-building; for slide decks see presentations.

Install

npx vskill@latest install kmaruthi2002/universal-llm-skills/data-visualization

SKILL.md

The same SKILL.md was published earlier as kmaruthi2002/universal-llm-skills/data-visualization.

Data Visualization

A chart is an argument made with position, length, shape and color. A good one lets the reader see the answer to a question faster and more reliably than they could from a table. A bad one is decoration at best and deception at worst. The craft lies less in the tooling than in deciding what comparison the reader needs to make and then making that comparison effortless.

Scope

This skill covers choosing, building, labelling and critiquing individual charts and small sets of charts, in any medium. Neighbours:

  • dashboard-building — multi-chart, interactive, recurring monitoring views.
  • presentations — charts in the context of a talk and a slide sequence.
  • data-analysis and statistical-analysis — deciding what is true before deciding how to show it.
  • accessible-design — broader accessibility requirements beyond those covered here.
  • visual-design and design-systems — when charts must fit a visual identity or a component library.

Core principles

1. Start from the question, not the data

Every chart should answer a question you can state in a sentence: "Did signups recover after the outage?", "Which regions are below target?", "How is order value distributed?". The question determines what is compared, which determines the chart. Putting all available columns on a chart and letting the reader find the story is not neutral; it pushes the analytical work onto the reader and usually fails.

2. Encode the most important comparison with the most accurate channel

People judge some visual properties far more precisely than others. Roughly, from most to least accurate for quantitative comparison:

  1. Position along a common scale (dot plot, bar ends, line height on a shared axis)
  2. Position along non-aligned scales (same chart type, separate panels)
  3. Length (bars from a common baseline)
  4. Angle and slope
  5. Area
  6. Volume, color saturation and lightness
  7. Color hue (good for categories, poor for quantities)

Put the comparison that answers the question on position. Use weaker channels (color, size) for secondary information. Why: this ordering comes from perception research and explains most chart advice: why bar charts beat pie charts for precise comparison, why bubble sizes are hard to read, why 3D distorts.

3. Every ink mark should carry information or aid reading

Remove what does not help: heavy gridlines, borders, background fills, redundant legends, 3D effects, drop shadows, decorative icons. Keep what helps: light reference gridlines when values must be read, axis labels, a zero line, annotations. Why: clutter costs attention, and the reader's attention is the scarcest resource. But minimalism is not the goal — clarity is. Removing axis labels to look clean is a failure.

4. Honesty is non-negotiable

The visual impression must match the data. Bars start at zero; areas are proportional to values; axes are not truncated or broken without clear signalling; time intervals are evenly spaced; uncertainty is shown when it matters; cherry-picked windows are avoided. Why: readers take in the visual impression first and often never read the numbers. A chart that is technically labelled but visually misleading still misleads.

5. Style follows the destination

The right fonts, colors, sizes and density depend on where the chart will live: a journal figure, a slide seen across a room, a dashboard on a laptop, a mobile app, a printed report, a brand-governed marketing page, dark or light mode. Find the destination's conventions and design tokens and derive the chart's style from them rather than shipping a library default or a personal favourite style. Why: a chart that clashes with its context looks untrustworthy and is harder to read in that context (e.g., thin lines and small labels vanish on a projector).

Process

Step 1 — Write the question and the takeaway

Write the question the chart answers. If the analysis is done, also write the takeaway in one sentence ("Northern region is the only one below target for three consecutive months"). The takeaway often becomes the chart title. If you cannot write it, the analysis is not finished or the chart is exploratory — both are fine, but know which.

Step 2 — Identify the comparison type
ComparisonTypical forms
Change over timeLine chart (continuous), column chart (few discrete periods), slope chart (two points), area chart (cumulative totals or composition over time), sparkline (compact trend)
Ranking / magnitude across categoriesSorted horizontal bar, dot plot, lollipop; table with inline bars
Part-to-wholeStacked bar (few parts), 100% stacked bar (compare composition across groups), treemap (many parts, hierarchy); pie or donut only for 2–3 parts where "roughly half" is the message
DistributionHistogram, density, box plot, violin, strip/beeswarm (small n), ECDF (comparing distributions precisely), percentile bands
Relationship between two numeric variablesScatter plot (add trend line or smoother if useful), hexbin or 2D density for many points, connected scatter for time
Deviation from referenceDiverging bar from a baseline, bullet chart (actual vs target), bar with a reference line
Many series or groupsSmall multiples (same chart repeated per group, shared axes), highlighted line among grey context lines, heatmap
Flow / processSankey or alluvial (few nodes), funnel bars
GeographicChoropleth (rates, not counts — counts just show population), proportional symbol map (counts), but ask whether geography is actually the point; a sorted bar chart of regions is often clearer
UncertaintyError bars or interval bands, gradient/fan charts, quantile dot plots; always say what the interval is
Exact values matterA table. Not every number needs a chart.

When two forms fit, pick the one the audience reads fluently. Novel chart types carry a learning cost; use them only when they show something the familiar forms cannot.

Step 3 — Prepare the data for the chart
  • Aggregate to the right level; sort categories by value (not alphabetically) unless they have a natural order (time, size bands, ordinal scales).
  • Limit categories. Beyond ~7–10 lines or colors, readers cannot track them. Group the tail into "Other" (and say what is in it), highlight a few series against grey context, or use small multiples.
  • Decide on rates vs counts, absolute vs indexed (indexing to 100 at a start date compares growth of series with different scales), and linear vs log scale (log for data spanning orders of magnitude or for comparing growth rates — label it clearly).
  • Handle missing periods explicitly: a gap in the line, not interpolation that implies data you do not have.
Step 4 — Build the encoding hierarchy

Decide, in order: what goes on x, what goes on y, what (if anything) is color, what is facet (small multiple), what is size or shape. Each additional encoding makes the chart harder to read; most good charts use two or three. If you need five, you probably need two charts.

Step 5 — Apply color with purpose

See "Color" below. Default to one neutral color and add color only to encode something or to highlight.

Step 6 — Label and annotate
  • Title states the takeaway (for explanatory charts) or the question (for exploratory/reference charts). A subtitle can carry the metric definition, units, population and time range.
  • Label lines and bars directly where possible instead of a legend; legends force eye travel and color matching.
  • Axis titles include units ("Revenue (USD millions)", "Latency, p95 (ms)"). Format tick labels for readability (1.2M, not 1200000; dates in the audience's format).
  • Annotate the important point: the event that caused a change, the threshold, the outlier worth explaining. Annotations do the work a presenter would do by pointing.
  • Source and notes: data source, date extracted, definitions, exclusions, sample size. Small but present.
Step 7 — Review against the destination

Render it at the actual size and medium: on the slide, in the document column, on a phone, in dark mode, in grayscale print. Check legibility of the smallest text, contrast, and whether the takeaway is visible within a few seconds.

Color

Choose the palette type from the data
DataPalette typeNotes
Unordered categoriesCategorical (qualitative): distinct hues of similar lightnessKeep to roughly 6–8 distinguishable hues; beyond that, color stops working as an identifier
Ordered values from low to highSequential: one hue (or a perceptually uniform multi-hue ramp) varying mainly in lightnessLightness should change monotonically; the darkest (or most saturated) end usually means "more" against a light background
Values diverging from a meaningful midpoint (zero, target, average, 50%)Diverging: two hues meeting at a neutral midpointOnly use when the midpoint is meaningful; the midpoint must be set at that value, not at the data's middle
Highlight vs contextAccent: one strong color, everything else neutral greyOften the most effective palette in explanatory charts

Use perceptually uniform colormaps (e.g., viridis-family, cividis, ColorBrewer and similar sets, or the project's own validated scales) for continuous data. Avoid rainbow/jet colormaps for quantitative data: their lightness is non-monotonic, which creates false boundaries and hides real ones, and they are hard for colorblind readers.

Color must mean something, consistently
  • The same category gets the same color across every chart in a report or dashboard.
  • Do not use color for a dimension already encoded by position (bars colored by their own category label add nothing but noise and imply a legend lookup).
  • Respect cultural and domain semantics where they exist (e.g., red for loss or error and green for gain or success in many finance and ops contexts) — and note that these are conventions, not universals; check the destination.
  • Do not rely on color alone. Pair it with direct labels, position, shape, line style or patterns so the chart works for colorblind readers, in grayscale print, and on poor displays.
Colorblind safety and contrast
  • About 1 in 12 men and 1 in 200 women have some form of color vision deficiency, most commonly red–green. Avoid red/green as the only distinguishing pair; blue/orange is a robust alternative contrast.
  • Vary lightness, not just hue, between categories that must be distinguished.
  • Check with a color-vision-deficiency simulator (many design tools and browser devtools include one) and in grayscale.
  • Text and essential graphical elements need adequate contrast against the background (WCAG suggests at least 4.5:1 for normal text and 3:1 for large text and meaningful graphics); see accessible-design.
  • In dark mode, palettes need adjusting, not just inverting: saturated colors that work on white may vibrate on black, and sequential scales may need their direction reconsidered.
Where colors come from

If the destination has a design system, brand palette or chart tokens, use them — and check that they include proper categorical, sequential and diverging scales with adequate contrast. If they do not, derive scales that harmonise with the brand's colors while meeting the perceptual rules above, and flag any brand color that fails contrast. If there is no context at all, use a well-tested neutral palette and keep it minimal. Never present one palette as "the" right one; it is a choice made for a context.

Axes and scales: honesty rules

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kmaruthi2002/universal-llm-skills/data-visualization/badge)](https://verified-skill.com/skills/kmaruthi2002/universal-llm-skills/data-visualization)

Something wrong with this skill or its page? Tell us.