European electricity prices (sequential scale, unit)
Country codes are ISO alpha-2; unit shows in the legend.
Turn {region: value} data into a shareable choropleth map image with a single GET URL. No account, no API key, no code execution.
https://atlashot.pages.dev/m?map=<mapset>&d=<CODE:value,...>&title=...
Append &format=svg for the raw SVG image (directly embeddable), or &format=json for machine-readable diagnostics.
| param | required | type | default | allowed | meaning |
|---|---|---|---|---|---|
map | yes | string | — | a map set id from the table below (e.g. world, europe, us, ro) | Which map to draw. |
d | yes | string | — | comma-separated CODE:value pairs | The data. CODE is ISO 3166-1 alpha-2 for countries (DE, FR) or ISO 3166-2 for subdivisions (US-CA, RO-CJ). Values: numbers for color scales, or short text labels for categorical maps. Aliases accepted per map set: plain region names everywhere; ISO alpha-3 + ISO numeric (world, europe); EL/UK NUTS-0 (europe); FIPS numeric + bare postal (us); NUTS-3 codes + bare county codes (ro). |
title | no | string | none | any text (URL-encoded, + for space) | Map title, rendered into the image. |
subtitle | no | string | none | any text | Smaller line under the title. |
unit | no | string | none | any short text | Unit label shown with the legend (e.g. EUR/MWh, %). |
source | no | string | none | any short text | Data source credit, rendered next to the attribution. |
palette | no | string | blues (numeric), rdbu (mixed-sign), tableau (text) | blues, greens, oranges, purples, reds, viridis, rdbu, brbg, puor, tableau | Color palette. Sequential for all-positive numbers, diverging (rdbu/brbg/puor) for mixed-sign, tableau for categories. |
scale | no | string | quantile (quantize over a symmetric domain for mixed-sign data) | quantile, quantize, linear, threshold:10,20,50 | How values map to color classes. threshold takes explicit cut points. |
classes | no | integer | 5 | 3–9 | Number of color classes. |
domain | no | string | data min,max (symmetric around 0 for mixed-sign data) | min,max (two numbers) | Override the scale extent. |
format | no | string | ,.2~f | a d3-format specifier (.1f, .0%, ~s) — or the reserved values json and svg | Number format for legend labels. Reserved values change the response instead: format=json returns machine-readable diagnostics (application/json); format=svg returns the map itself as a raw SVG image (image/svg+xml), directly embeddable in <img> tags. |
embed | no | flag | 0 | 1 | Render only the map (for iframes) — no page chrome. |
v | no | integer | 1 | 1 | URL format version. |
| id | coverage | regions | region codes |
|---|---|---|---|
world | World — countries | 175 | codes |
europe | Europe — countries | 46 | codes |
us | United States — states | 51 | codes |
ro | Romania — județe | 42 | codes |
Country codes are ISO alpha-2; unit shows in the legend.
Mixed-sign values pick the diverging red-blue palette automatically.
Text values make a categorical map; codes are US-XX.
Subdivision codes are RO-XX; threshold sets the class cut points.
format styles legend labels; domain fixes the scale extent.
Rendering is forgiving: bad rows are skipped with a warning, the rest of the map renders. Append &format=json to any map URL for a true JSON diagnostics report (HTTP 200 when the map renders, 400 when required parameters are missing or wrong).