Skip to content

Datawrapper MCP V2 2.5.0

Choose a tag to compare

@JohnnyTheTank JohnnyTheTank released this 30 Nov 15:20
· 85 commits to main since this release

From the Datawrapper blog (see research/blog/findings.md); every option was rendered against the live API.

Line charts and small multiples

  • Connect gaps: style.connect_gaps and series_styles[column].connect_gaps draw a line across empty cells — for series with different intervals (yearly next to monthly values). Other lines keep their gaps.
  • Reference line in every panel: style.panels.repeat: [{column, color, dash, width, in_legend, own_panel}] repeats a column (total, average) in each panel of multiple-lines; panels.hide removes panels, panels.titles sets panel titles (HTML).
  • Fixed: dash: "dashed" drew dots and "dotted" long dashes in series_styles; they now draw what they say.

Tables

  • Cell colors by category: style.table.cell_colors: {column: {by, text, background, hide_by}} colors a column's cells by the categories of another column. hide_by hides the category column (a column removed with hide_columns cannot color cells).

Locator maps

  • Point markers take rotate (label rotation in degrees) and icon_background (white disc behind the icon).

Checks and guidance

  • New hints: pies and donuts with more than 5 slices (unless grouped), more than 7 different series_colors.
  • Skills: a "Colors" section (categories, grey, sensitive topics, color keys), how to choose a map color scale (steps vs. continuous, breaks by message, diverging), rules for stacked charts, areas and line axes, recipes for recurring charts, chart series and translations. The server instructions mention the copy-and-update workflow.

More from the blog (second batch)

  • Lines: series_styles[column] takes value_labels: {max, last_outside}, symbol_style: "hollow" and symbol_size.
  • Scatter: size_legend takes layout (stacked/nested), values, format, label_position; custom_lines areas take stroke.
  • Arrow maps: map.symbols.arrows: {angles, angle, color, negative_color}.
  • Map place labels: type (point, capital, region, country), align, inverted.
  • Color scales: color_scale.quantile_classes (2–11) for continuous quantile scales.
  • Live data: GitHub file pages (…/blob/…) in external_url are rewritten to the raw file.
  • Tooltips: the local check accepts lambdas (f(d) = …) in array functions; the skill documents SORT/MAP/FILTER/SLICE.
  • New hints: a "Total" column inside a stacked chart, titles over 100 characters, skewed values on an evenly spaced choropleth scale, more than 12 panels, area charts with fewer than 6 dates.

Guidance (third batch)

  • Skills: surveys and polls, small multiples, log scales, dual-axis alternatives, titles and where text goes, right-to-left locales, table design, what to map (specific basemaps, small samples, two-party maps, cartograms), locator-map tips, a second signal besides color, and two rendered scatter recipes (strip plot with jitter, lollipop).

Color checks

  • New hints: series, base or negative colors that are almost invisible on white (contrast below 1.25:1), pure fully saturated colors (#ff0000, #00ff00 …), and table text with less than 3:1 contrast on its cell or row background (table.cell_colors, table.rows).

Skills and evals

  • building-charts is shorter: the recipes and the color rules moved to references/recipes.md and references/colors.md (read with get_guide('building-charts', 'references/…')); the skill keeps a list of the recipes and a short color summary.
  • scripts/eval-tool.ts runs the server's tools against a fake Datawrapper API (no token, no quota) and logs every call, so agents with only a shell can be evaluated; evals/skills-tasks.json has seven tasks for it.
  • New hint: a rest category ("Other", "Sonstige", "No data" …) with a color of its own.

Rules where agents read them

Agents built most eval charts from the tool schema alone, without opening a skill. The rules they need most now sit in the schema and in error hints:

  • Field descriptions state them as facts: series_colors (about 7 colors, grey for rest categories), highlight, title (a sentence with a verb, about 80 characters), intro, group_slices (up to 5 slices), color_scale (steps vs. continuous, which breaks show what), and type (which forms are recipes).
  • Asking for a form that has no type of its own — lollipop, strip plot, beeswarm, ridgeline, population pyramid, forecast, confidence band, slope or bump chart — returns what it is built from and where the steps are, instead of "Unknown chart type".
  • The server instructions list the rules agents miss most.

Usage statistics (HTTP)

  • Each user is counted once, also across restarts and deploys. Users are counted through keyed hashes of the user id (HMAC-SHA256, key STATS_SECRET or derived from OAUTH_SECRET) instead of a random salt per process: one hash per day and a separate one per month, which cannot be linked to each other. Before, everyone active before and after a restart was counted twice that day.
  • Nothing is lost on a deploy. A server that shuts down sends its counts to its successor (POST /stats/handover on its own public URL, bearer token derived from the statistics key), once at the signal and once after the last request. Before, everything since the last hourly collection was gone, and a fly secrets set lost up to an hour. A crash still loses what was not collected. STATS_DIR keeps the counts in a directory that all processes share instead.
  • Distinct users per month (months in /stats, a tile and a table in the dashboard).
  • Admins: STATS_ADMIN_USERS marks the operator's own Datawrapper user ids. They are counted like everyone else and every count is also reported as excludingAdmins; the dashboard has an "Exclude admins" switch. STATS_EXCLUDE_USERS still leaves accounts out entirely.
  • /stats lists in includes the earlier processes whose counts it reports; the collector drops their segments, so a day has one segment again. It answers 503 while the store cannot be read.
  • Two days after a day or month has ended, its hashes are deleted and only the counts remain.
  • STATS_FILE is deprecated: its counts are taken over into the directory <STATS_FILE>.d.
  • The privacy policy describes the hashes and their lifetime.
  • collect-stats.ts dashboard --file F shows a local file (launch config stats-dashboard-local).