OptionalcustomCustom data keyed by region ID. Use instead of a remote data source.
OptionaleurostatEurostat dataset code. e.g. 'demo_r_d3dens'
OptionalfiltersFilters for the Eurostat API query.
OptionalprecisionNumber of decimal places for Eurostat API data.
OptionalcsvURL of a CSV file to use as the data source.
OptionalgeoCSV column containing NUTS region IDs.
OptionalvalueCSV column containing statistical values.
OptionalunitUnit of measure label shown in tooltips. e.g. 'people/km²'
OptionalpreprocessOptional preprocessing hook called with (regionId, value) before transform. Return null/undefined/false to filter out the region.
OptionaltransformOptional transform function applied to raw values after data loads. e.g. v => v * 1000
OptionallabelDataset label/name from the Eurostat API response.
Configuration for a statistical data source. Pass this to map.stat() or as the config argument to statData().
Preferred for multi-channel maps: register named datasets with
map.stat('datasetName', config)and map them withmap.encoding(...).