Allow additional properties for extensibility.
OptionalsvgContainer settings.
OptionalcontainerID of the container element used to host the map.
OptionalprojNUTS2json geometries projection: '3035', '3857', '4326'. For custom projections, use 4326 and then set projectionFunction().
OptionalprojectionFunction to set a custom projection. See d3-geo projections for examples.
OptionalscaleScale of the map, for NUTSjson geometries.
OptionalnutsNUTS level (0, 1, 2, 3), or 'mixed' to let each region use its most granular level.
OptionalnutsNUTS boundary year.
Optionalnuts2jsonBase URL used to fetch NUTS2JSON boundary geometries. Applies to the top-level map and
(unless a given inset overrides it via InsetConfig.nuts2jsonBaseURL) all of its insets.
OptionalworldURL of the world boundaries topojson file used by geo: 'WORLD' maps. Not part of
Nuts2json (a separate, bundled eurostat-map asset), so it is independent of
nuts2jsonBaseURL. Applies to the top-level map and all of its insets.
OptionalgeoGeographic center as [longitude, latitude].
OptionalgeoNUTS2JSON geographic focus (e.g., 'EUR', 'WORLD', 'IC', 'GF'). See https://github.com/eurostat/Nuts2json#overseas-territories---map-insets
OptionalwidthLogical map width in pixels.
OptionalheightLogical map height in pixels.
OptionalresponsiveScale a standalone root SVG down to its container width, preserving its aspect ratio and original coordinate viewBox without reprojecting. It never grows beyond its configured dimensions. Nested SVG or group maps, such as IMAGE, are not altered.
OptionallayoutHow the layout adapts to the room the map has. The room is the width of the map's container, not the
device: a map in a small iframe is as compact as one on a phone. 'auto' follows the container (and
rebuilds the map when it is resized across the breakpoint, 768 px); 'desktop' and 'compact' fix the
profile. The compact layout draws the map at its real size (readable text, bigger buttons), puts the
legends under the map, and lets a single finger scroll the page. See docs/responsive.md.
OptionallegendWhere the legends go in the compact layout: 'below' the map, or 'keep' where legend() puts them.
OptionaltitleMap title.
OptionalsubtitleMap subtitle.
OptionalfootnoteFootnote text shown below the map. Defaults to Credits.
OptionalfootnoteTooltip text for the footnote. The default Credits also shows boundary attribution.
OptionalfootnoteWrap footnote text at this many characters.
OptionalnoText shown in the tooltip and legend for regions with no data.
OptionallanguageBCP 47 language tag used when fetching labels from the Eurostat API.
OptionaltransitionDuration in milliseconds for D3 transitions when the map updates. Set to 0 to disable.
OptionalencodingOptional visual encoding configuration by channel (size, color, fill, composition, etc.).
OptionalrankedRanked bar chart configuration (choropleth-classified map types only). Independent of the legend - has its own positioning and can render into an entirely different container/SVG to the legend's, rather than being a sub-feature of it.
OptionaltooltipTooltip configuration.
OptionalinsetsInset map configurations. Pass a named preset string, or a custom array, or false to disable. Passing true is an alias for 'default'.
OptionalinsetPosition [x, y] of the box containing the default/named-preset insets layout.
OptionalinsetPadding in pixels around/between insets in the default insets box layout.
OptionalinsetWidth in pixels of each inset in the default insets box layout.
OptionalinsetDefault NUTS2JSON scale used for insets that don't specify their own.
OptionalinsetDefault D3 zoom scale extent for insets. null disables zoom on insets.
OptionalzoomZoom and pan settings.
OptionaldefaultDivides the exact bbox-fit pixel size used when position().z is left unset, so the default view is zoomed in tighter than an exact fit (which tends to look too zoomed out). Higher = more zoomed in by default; 1 = exact fit.
OptionaltranslateD3 zoom translate extent (pan boundaries), as [[x0, y0], [x1, y1]].
OptionallockIf true, panning is disabled until the user has zoomed at least once.
OptionalgridGrid cartogram layout settings.
OptionaldorlingDorling simulation settings.
OptionaldrawShow or hide the coastal margin effect.
OptionalcoastalCoastal margin settings to override defaults.
OptionaldrawGraticule.
OptionallightLight (white) borders, without national border halo (em--borders-light). Default false.
OptionaldarkDark sea and land, with borders adjusted to them (em--dark). Default false.
OptionallabelsGet or set label configuration for country names, statistical values, etc.
OptionalonFires once the map is built.
OptionalscalebarScalebar configuration. Can be boolean or configuration object.
OptionalannotationsAnnotation configuration, rendered via the d3-svg-annotation library.
annotations is an array of d3-svg-annotation annotation objects; each object's type
may be one of 'annotationLabel' (default), 'annotationCallout', 'annotationCalloutRect',
'annotationCalloutCircle', 'annotationXYThreshold', resolved to the matching d3-svg-annotation
function internally.
OptionalgridGrid cartogram enabled or disabled.
OptionalfilterCustom geometry filtering function.
OptionalbackgroundToggle background map rendering (sea, country boundaries, etc.).
OptionalminimapMinimap (globe inset showing current viewport) configuration.
OptionalstampStamp/watermark annotation.
OptionalzoomShow/hide zoom +/- buttons.
OptionalinsetsShow/hide inset map toggle button. When true and no insets are configured, the map automatically uses insets('default').
OptionallegendShow/hide legend toggle button.
OptionalplacenamesShow/hide placename labels.
OptionalplacenamesFilter function for placename labels.
OptionalheaderUse a separate header section for titles.
OptionalfooterUse a separate footer section for footnotes.
OptionalfooterPadding between the map and footer in pixels.
OptionalheaderPadding between the header and map in pixels.
OptionaltitlePosition adjustment for map title: [x, y]
OptionalsubtitlePosition adjustment for map subtitle: [x, y]
OptionalfootnotePosition adjustment for footnote text: [x, y]
OptionalshowShow the Eurostat logo.
OptionallogoPosition adjustment for Eurostat logo: [x, y]
OptionallogoWidth in pixels of the Eurostat logo.
OptionallogoHeight in pixels of the Eurostat logo.
OptionalshowShow the Eurostat ribbon banner.
OptionalribbonPosition adjustment for ribbon banner: [x, y]
OptionalribbonWidth in pixels of the Eurostat ribbon banner.
OptionalribbonHeight in pixels of the Eurostat ribbon banner.
OptionalzoomPosition adjustment for zoom buttons: [x, y]
OptionalinsetsPosition adjustment for insets button: [x, y]
OptionalinsetsContainer width (px) at/below which insets start hidden (behind the insets button) unless insetsButton was set explicitly.
OptionallegendPosition adjustment for legend button: [x, y]
OptionallegendContainer width (px) at/below which the legend starts hidden (behind the legend button) when legendButton is enabled.
OptionalhoverPointer hover color for NUTS regions.
OptionalnoBase fill color for regions with no statistical data.
OptionalshowShow the link to the remote Eurostat statistical dataset.
OptionalpatternPattern fill (hatching/dots/crosshatch) overlays for specific regions.
OptionalstatStatistical data configuration. For sparkline maps, pass a dates-keyed
SparkStatConfig (equivalent to calling .statSpark(...)) rather than a plain
single-value StatConfig.
OptionalsparkGrouped sparkline rendering settings.
OptionalsparkSpark type.
OptionalsparkOptionalsparkOptionalsparkSpark line width.
OptionalsparkSpark line height.
OptionalsparkSpark line stroke width.
OptionalsparkSpark line opacity.
OptionalsparkSpark line circle radius.
OptionalsparkSpark tooltip chart.
Width.
Height.
Margin.
Circle radius.
OptionalsparkSpark line offsets.
OptionalshowShow only when complete.
OptionalsparkOptionallegendLegend.
Configuration for sparkline maps.