Repository navigation
Datawrapper MCP V2 2.5.0
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_gapsandseries_styles[column].connect_gapsdraw 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 ofmultiple-lines;panels.hideremoves panels,panels.titlessets panel titles (HTML). - Fixed:
dash: "dashed"drew dots and"dotted"long dashes inseries_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_byhides the category column (a column removed withhide_columnscannot color cells).
Locator maps
- Point markers take
rotate(label rotation in degrees) andicon_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]takesvalue_labels: {max, last_outside},symbol_style: "hollow"andsymbol_size. - Scatter:
size_legendtakeslayout(stacked/nested),values,format,label_position;custom_linesareas takestroke. - 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/…) inexternal_urlare 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-chartsis shorter: the recipes and the color rules moved toreferences/recipes.mdandreferences/colors.md(read withget_guide('building-charts', 'references/…')); the skill keeps a list of the recipes and a short color summary.scripts/eval-tool.tsruns 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.jsonhas 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), andtype(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_SECRETor derived fromOAUTH_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/handoveron 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 afly secrets setlost up to an hour. A crash still loses what was not collected.STATS_DIRkeeps the counts in a directory that all processes share instead. - Distinct users per month (
monthsin/stats, a tile and a table in the dashboard). - Admins:
STATS_ADMIN_USERSmarks the operator's own Datawrapper user ids. They are counted like everyone else and every count is also reported asexcludingAdmins; the dashboard has an "Exclude admins" switch.STATS_EXCLUDE_USERSstill leaves accounts out entirely. /statslists inincludesthe 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_FILEis 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 Fshows a local file (launch configstats-dashboard-local).