Export
Export the map as PNG / SVG or the data as CSV.
Open the chart without page chrome ↗Drawing width at least 900 px. Scroll within the chart on smaller screens.
const options = {
"chart": {
"height": 460,
"toolbar": {
"show": false
},
"type": "map"
},
"series": [
{
"name": "Adoption %",
"data": [
{
"id": "DEU",
"region": "Europe",
"value": 65.4
},
{
"id": "FRA",
"region": "Europe",
"value": 70.3
},
{
"id": "GBR",
"region": "Europe",
"value": 63.2
},
{
"id": "ITA",
"region": "Europe",
"value": 33.2
},
{
"id": "ESP",
"region": "Europe",
"value": 66.9
},
{
"id": "NLD",
"region": "Europe",
"value": 36.8
},
{
"id": "BEL",
"region": "Europe",
"value": 66.5
},
{
"id": "CHE",
"region": "Europe",
"value": 60.1
},
{
"id": "AUT",
"region": "Europe",
"value": 54.3
},
{
"id": "POL",
"region": "Europe",
"value": 73.8
},
{
"id": "SWE",
"region": "Europe",
"value": 63.4
},
{
"id": "NOR",
"region": "Europe",
"value": 79.6
},
{
"id": "DNK",
"region": "Europe",
"value": 64.7
},
{
"id": "FIN",
"region": "Europe",
"value": 73.6
},
{
"id": "IRL",
"region": "Europe",
"value": 56
},
{
"id": "PRT",
"region": "Europe",
"value": 34.2
},
{
"id": "CZE",
"region": "Europe",
"value": 36.3
},
{
"id": "HUN",
"region": "Europe",
"value": 52
},
{
"id": "ROU",
"region": "Europe",
"value": 79.8
},
{
"id": "GRC",
"region": "Europe",
"value": 82.2
},
{
"id": "SVK",
"region": "Europe",
"value": 64.2
},
{
"id": "BGR",
"region": "Europe",
"value": 70.6
},
{
"id": "HRV",
"region": "Europe",
"value": 73.3
},
{
"id": "SRB",
"region": "Europe",
"value": 76.1
},
{
"id": "SVN",
"region": "Europe",
"value": 61.7
},
{
"id": "LTU",
"region": "Europe",
"value": 37.6
},
{
"id": "LVA",
"region": "Europe",
"value": 49.5
},
{
"id": "EST",
"region": "Europe",
"value": 33.4
},
{
"id": "UKR",
"region": "Europe",
"value": 67.5
},
{
"id": "BLR",
"region": "Europe",
"value": 66.1
},
{
"id": "ISL",
"region": "Europe",
"value": 39.5
},
{
"id": "USA",
"region": "North America",
"value": 55.8
},
{
"id": "CAN",
"region": "North America",
"value": 74.7
},
{
"id": "MEX",
"region": "North America",
"value": 66.6
},
{
"id": "GTM",
"region": "North America",
"value": 67.8
},
{
"id": "CRI",
"region": "North America",
"value": 84.9
},
{
"id": "PAN",
"region": "North America",
"value": 42.9
},
{
"id": "CUB",
"region": "North America",
"value": 93.6
},
{
"id": "DOM",
"region": "North America",
"value": 67.5
},
{
"id": "BRA",
"region": "South America",
"value": 28.3
},
{
"id": "ARG",
"region": "South America",
"value": 37.9
},
{
"id": "CHL",
"region": "South America",
"value": 24.4
},
{
"id": "COL",
"region": "South America",
"value": 18.8
},
{
"id": "PER",
"region": "South America",
"value": 38.4
},
{
"id": "URY",
"region": "South America",
"value": 21.5
},
{
"id": "ECU",
"region": "South America",
"value": 37.9
},
{
"id": "VEN",
"region": "South America",
"value": 40.1
},
{
"id": "BOL",
"region": "South America",
"value": 20.7
},
{
"id": "PRY",
"region": "South America",
"value": 35.9
},
{
"id": "JPN",
"region": "Asia",
"value": 31
},
{
"id": "KOR",
"region": "Asia",
"value": 33.4
},
{
"id": "CHN",
"region": "Asia",
"value": 27.2
},
{
"id": "IND",
"region": "Asia",
"value": 27.1
},
{
"id": "IDN",
"region": "Asia",
"value": 35.6
},
{
"id": "SGP",
"region": "Asia",
"value": 37.3
},
{
"id": "MYS",
"region": "Asia",
"value": 30.2
},
{
"id": "THA",
"region": "Asia",
"value": 46.8
},
{
"id": "VNM",
"region": "Asia",
"value": 25.5
},
{
"id": "PHL",
"region": "Asia",
"value": 39.5
},
{
"id": "ISR",
"region": "Asia",
"value": 24.5
},
{
"id": "ARE",
"region": "Asia",
"value": 39.3
},
{
"id": "SAU",
"region": "Asia",
"value": 34.2
},
{
"id": "TUR",
"region": "Asia",
"value": 18.8
},
{
"id": "KAZ",
"region": "Asia",
"value": 24.9
},
{
"id": "PAK",
"region": "Asia",
"value": 33
},
{
"id": "BGD",
"region": "Asia",
"value": 29.3
},
{
"id": "LKA",
"region": "Asia",
"value": 44.6
},
{
"id": "AUS",
"region": "Oceania",
"value": 65.8
},
{
"id": "NZL",
"region": "Oceania",
"value": 58.4
},
{
"id": "ZAF",
"region": "Africa",
"value": 14.7
},
{
"id": "NGA",
"region": "Africa",
"value": 8.8
},
{
"id": "EGY",
"region": "Africa",
"value": 14.9
},
{
"id": "KEN",
"region": "Africa",
"value": 6.9
},
{
"id": "MAR",
"region": "Africa",
"value": 15.7
},
{
"id": "GHA",
"region": "Africa",
"value": 16.5
},
{
"id": "ETH",
"region": "Africa",
"value": 16.2
},
{
"id": "TZA",
"region": "Africa",
"value": 8.9
},
{
"id": "DZA",
"region": "Africa",
"value": 8.6
},
{
"id": "TUN",
"region": "Africa",
"value": 13.9
},
{
"id": "SEN",
"region": "Africa",
"value": 8
},
{
"id": "CIV",
"region": "Africa",
"value": 16.2
},
{
"id": "AGO",
"region": "Africa",
"value": 12.1
}
]
}
],
"plotOptions": {
"map": {
"map": "world-small-states"
}
},
"theme": {
"mode": "light",
"preset": "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()import WestCoastCharts from 'west-coast-charts'
import types from 'west-coast-charts/types'
import premium from 'west-coast-charts/premium'
import 'west-coast-charts/maps/world-small-states' // registers the map shapes
WestCoastCharts.use(types).use(premium)
const WestCoastChartsPremium = premium
WestCoastCharts.setLicenseKey(LICENCE_KEY) // paid production licence; localhost evaluation needs no key
const options = {
"chart": {
"height": 460,
"toolbar": {
"show": false
},
"type": "map"
},
"series": [
{
"name": "Adoption %",
"data": [
{
"id": "DEU",
"region": "Europe",
"value": 65.4
},
{
"id": "FRA",
"region": "Europe",
"value": 70.3
},
{
"id": "GBR",
"region": "Europe",
"value": 63.2
},
{
"id": "ITA",
"region": "Europe",
"value": 33.2
},
{
"id": "ESP",
"region": "Europe",
"value": 66.9
},
{
"id": "NLD",
"region": "Europe",
"value": 36.8
},
{
"id": "BEL",
"region": "Europe",
"value": 66.5
},
{
"id": "CHE",
"region": "Europe",
"value": 60.1
},
{
"id": "AUT",
"region": "Europe",
"value": 54.3
},
{
"id": "POL",
"region": "Europe",
"value": 73.8
},
{
"id": "SWE",
"region": "Europe",
"value": 63.4
},
{
"id": "NOR",
"region": "Europe",
"value": 79.6
},
{
"id": "DNK",
"region": "Europe",
"value": 64.7
},
{
"id": "FIN",
"region": "Europe",
"value": 73.6
},
{
"id": "IRL",
"region": "Europe",
"value": 56
},
{
"id": "PRT",
"region": "Europe",
"value": 34.2
},
{
"id": "CZE",
"region": "Europe",
"value": 36.3
},
{
"id": "HUN",
"region": "Europe",
"value": 52
},
{
"id": "ROU",
"region": "Europe",
"value": 79.8
},
{
"id": "GRC",
"region": "Europe",
"value": 82.2
},
{
"id": "SVK",
"region": "Europe",
"value": 64.2
},
{
"id": "BGR",
"region": "Europe",
"value": 70.6
},
{
"id": "HRV",
"region": "Europe",
"value": 73.3
},
{
"id": "SRB",
"region": "Europe",
"value": 76.1
},
{
"id": "SVN",
"region": "Europe",
"value": 61.7
},
{
"id": "LTU",
"region": "Europe",
"value": 37.6
},
{
"id": "LVA",
"region": "Europe",
"value": 49.5
},
{
"id": "EST",
"region": "Europe",
"value": 33.4
},
{
"id": "UKR",
"region": "Europe",
"value": 67.5
},
{
"id": "BLR",
"region": "Europe",
"value": 66.1
},
{
"id": "ISL",
"region": "Europe",
"value": 39.5
},
{
"id": "USA",
"region": "North America",
"value": 55.8
},
{
"id": "CAN",
"region": "North America",
"value": 74.7
},
{
"id": "MEX",
"region": "North America",
"value": 66.6
},
{
"id": "GTM",
"region": "North America",
"value": 67.8
},
{
"id": "CRI",
"region": "North America",
"value": 84.9
},
{
"id": "PAN",
"region": "North America",
"value": 42.9
},
{
"id": "CUB",
"region": "North America",
"value": 93.6
},
{
"id": "DOM",
"region": "North America",
"value": 67.5
},
{
"id": "BRA",
"region": "South America",
"value": 28.3
},
{
"id": "ARG",
"region": "South America",
"value": 37.9
},
{
"id": "CHL",
"region": "South America",
"value": 24.4
},
{
"id": "COL",
"region": "South America",
"value": 18.8
},
{
"id": "PER",
"region": "South America",
"value": 38.4
},
{
"id": "URY",
"region": "South America",
"value": 21.5
},
{
"id": "ECU",
"region": "South America",
"value": 37.9
},
{
"id": "VEN",
"region": "South America",
"value": 40.1
},
{
"id": "BOL",
"region": "South America",
"value": 20.7
},
{
"id": "PRY",
"region": "South America",
"value": 35.9
},
{
"id": "JPN",
"region": "Asia",
"value": 31
},
{
"id": "KOR",
"region": "Asia",
"value": 33.4
},
{
"id": "CHN",
"region": "Asia",
"value": 27.2
},
{
"id": "IND",
"region": "Asia",
"value": 27.1
},
{
"id": "IDN",
"region": "Asia",
"value": 35.6
},
{
"id": "SGP",
"region": "Asia",
"value": 37.3
},
{
"id": "MYS",
"region": "Asia",
"value": 30.2
},
{
"id": "THA",
"region": "Asia",
"value": 46.8
},
{
"id": "VNM",
"region": "Asia",
"value": 25.5
},
{
"id": "PHL",
"region": "Asia",
"value": 39.5
},
{
"id": "ISR",
"region": "Asia",
"value": 24.5
},
{
"id": "ARE",
"region": "Asia",
"value": 39.3
},
{
"id": "SAU",
"region": "Asia",
"value": 34.2
},
{
"id": "TUR",
"region": "Asia",
"value": 18.8
},
{
"id": "KAZ",
"region": "Asia",
"value": 24.9
},
{
"id": "PAK",
"region": "Asia",
"value": 33
},
{
"id": "BGD",
"region": "Asia",
"value": 29.3
},
{
"id": "LKA",
"region": "Asia",
"value": 44.6
},
{
"id": "AUS",
"region": "Oceania",
"value": 65.8
},
{
"id": "NZL",
"region": "Oceania",
"value": 58.4
},
{
"id": "ZAF",
"region": "Africa",
"value": 14.7
},
{
"id": "NGA",
"region": "Africa",
"value": 8.8
},
{
"id": "EGY",
"region": "Africa",
"value": 14.9
},
{
"id": "KEN",
"region": "Africa",
"value": 6.9
},
{
"id": "MAR",
"region": "Africa",
"value": 15.7
},
{
"id": "GHA",
"region": "Africa",
"value": 16.5
},
{
"id": "ETH",
"region": "Africa",
"value": 16.2
},
{
"id": "TZA",
"region": "Africa",
"value": 8.9
},
{
"id": "DZA",
"region": "Africa",
"value": 8.6
},
{
"id": "TUN",
"region": "Africa",
"value": 13.9
},
{
"id": "SEN",
"region": "Africa",
"value": 8
},
{
"id": "CIV",
"region": "Africa",
"value": 16.2
},
{
"id": "AGO",
"region": "Africa",
"value": 12.1
}
]
}
],
"plotOptions": {
"map": {
"map": "world-small-states"
}
},
"theme": {
"mode": "light",
"preset": "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render() Waiting for the chart.
Open Data & agent view to read this chart through chart.describe().
Read from the running library through its optional agent/describe module. Text, table and JSON share the same snapshot. Demo data only.
$ wcc chart export maps-export.json --out maps-export.svg --with-table Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm. Save a JSON spec first and check the loaded runtime and supported modules before rendering. Command reference
Loading /gallery/maps/export/index.md … This example uses Premium modules. Compare licences · Embedding in a distributed product?