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.
OptionalgeoGeographic center as [longitude, latitude].
OptionalgeoNUTS2JSON geographic focus (e.g., 'EUR', 'WORLD', 'IC', 'GF'). See https://github.com/eurostat/Nuts2json#overseas-territories---map-insets
OptionalwidthMap dimensions.
OptionalheightMap height in pixels.
OptionaltitleMap title.
OptionalsubtitleMap subtitle.
OptionalfootnoteFootnote text shown below the map.
OptionalfootnoteTooltip text shown when hovering over the footnote.
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.
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.
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]
OptionalinsetsViewport width (px) at/below which insets start hidden (behind the insets button) unless insetsButton was set explicitly.
OptionallegendPosition adjustment for legend button: [x, y]
OptionallegendViewport 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.