World choropleth with a diverging index

Maps in CanvasXpress allow users to create interactive and customizable visualizations for geographical data. You can integrate various map types, such as choropleths or point maps, and layer your data to highlight trends, distributions, or relationships across regions. With its flexibility, Maps in CanvasXpress support detailed analysis and presentation of spatial data for a wide range of applications.


Economist GGPlot Excel Paul Tol Black And White Solarized Stata Tableau Wall Street CanvasXpress
<html>

  <head>
    <!-- Include the CanvasXpress library in your HTML file -->
    <link rel="stylesheet" href="https://www.canvasxpress.org/dist/canvasXpress.css" type="text/css"/>
    <script src="https://www.canvasxpress.org/dist/canvasXpress.min.js"></script>
  </head>

  <body>

    <!-- Create a canvas element for the chart with the desired dimensions -->
    <div>
      <canvas id="canvasId" width="600" height="600"></canvas>
    </div>


    <!-- Create a script to initialize the chart -->
    <script>

      // Use a data frame (2D-array) for the graph
      var data = 

      // Create the configuration for the graph
      var config = {
         "graphType" : "Map",
         "topoJSON" : "https://www.canvasxpress.org/data/maps/WORLD.json",
         "mapId" : "worldHpi",
         "theme" : "paulTol",
         "colorBy" : "Wellbeing index",
         "colorSpectrum" : [
            "#c51b7d",
            "#f7f7f7",
            "#4d9221"
         ],
         "colorSpectrumZeroValue" : 51,
         "title" : "How well does the planet live?",
         "subtitle" : "Synthetic wellbeing-efficiency index by country (34 = low, 68 = high). Synthetic data for illustration",
         "legendPosition" : "bottomLeft",
         "legendInside" : true,
         "showLegendTitle" : true,
         "mapColor" : "#dddddd",
         "decorations" : {
            "marker" : [
               {
                  "coords" : [
                     9.9,
                     -84.1
                  ],
                  "label" : "Costa Rica (68.3)",
                  "shape" : "sphere",
                  "size" : 1.6,
                  "color" : "#276419"
               }
            ]
         }
      }

      // Event used to create graph (optional)
      var events = false

      // Call the CanvasXpress function to create the graph
      var cX = new CanvasXpress("canvasId", data, config, events);

    </script>

  </body>

</html>
<html>

  <head>
    <!-- Include the CanvasXpress library in your HTML file -->
    <link rel="stylesheet" href="https://www.canvasxpress.org/dist/canvasXpress.css" type="text/css"/>
    <script src="https://www.canvasxpress.org/dist/canvasXpress.min.js"></script>
  </head>

  <body>

    <!-- Create a canvas element for the chart with the desired dimensions -->
    <div>
      <canvas id="canvasId" width="600" height="600"></canvas>
    </div>


    <!-- Create a script to initialize the chart -->
    <script>

      // Create the data for the graph
      var data = {
         "y" : {
            "vars" : [
               "AFG",
               "AGO",
               "ALB",
               "ARE",
               "ARG",
               "ARM",
               "AUS",
               "AUT",
               "AZE",
               "BDI",
               "BEL",
               "BEN",
               "BFA",
               "BGD",
               "BGR",
               "BIH",
               "BLR",
               "BOL",
               "BRA",
               "BWA",
               "CAF",
               "CAN",
               "CHE",
               "CHL",
               "CHN",
               "CIV",
               "CMR",
               "COD",
               "COG",
               "COL",
               "CRI",
               "CUB",
               "CZE",
               "DEU",
               "DNK",
               "DOM",
               "DZA",
               "ECU",
               "EGY",
               "ESP",
               "EST",
               "ETH",
               "FIN",
               "FRA",
               "GAB",
               "GBR",
               "GEO",
               "GHA",
               "GIN",
               "GRC",
               "GTM",
               "HND",
               "HRV",
               "HTI",
               "HUN",
               "IDN",
               "IND",
               "IRL",
               "IRN",
               "IRQ",
               "ISL",
               "ISR",
               "ITA",
               "JAM",
               "JOR",
               "JPN",
               "KAZ",
               "KEN",
               "KGZ",
               "KHM",
               "KOR",
               "KWT",
               "LAO",
               "LBN",
               "LBR",
               "LBY",
               "LKA",
               "LSO",
               "LTU",
               "LVA",
               "MAR",
               "MDG",
               "MEX",
               "MLI",
               "MMR",
               "MNG",
               "MOZ",
               "MRT",
               "MWI",
               "MYS",
               "NAM",
               "NER",
               "NGA",
               "NIC",
               "NLD",
               "NOR",
               "NPL",
               "NZL",
               "OMN",
               "PAK",
               "PAN",
               "PER",
               "PHL",
               "PNG",
               "POL",
               "PRK",
               "PRT",
               "PRY",
               "QAT",
               "ROU",
               "RUS",
               "RWA",
               "SAU",
               "SDN",
               "SEN",
               "SLE",
               "SLV",
               "SOM",
               "SRB",
               "SVK",
               "SVN",
               "SWE",
               "SYR",
               "TCD",
               "TGO",
               "THA",
               "TJK",
               "TKM",
               "TUN",
               "TUR",
               "TZA",
               "UGA",
               "UKR",
               "URY",
               "USA",
               "UZB",
               "VEN",
               "VNM",
               "YEM",
               "ZAF",
               "ZMB",
               "ZWE"
            ],
            "smps" : [
               "Wellbeing index"
            ],
            "data" : [
               [
                  37.2
               ],
               [
                  36.3
               ],
               [
                  55.5
               ],
               [
                  44.4
               ],
               [
                  45
               ],
               [
                  41.3
               ],
               [
                  51.4
               ],
               [
                  66.4
               ],
               [
                  62.1
               ],
               [
                  34.3
               ],
               [
                  58.1
               ],
               [
                  41.1
               ],
               [
                  36.9
               ],
               [
                  67.5
               ],
               [
                  62.5
               ],
               [
                  50.1
               ],
               [
                  59.2
               ],
               [
                  35.9
               ],
               [
                  49.4
               ],
               [
                  56.3
               ],
               [
                  67.5
               ],
               [
                  41.2
               ],
               [
                  62.8
               ],
               [
                  41.8
               ],
               [
                  40.5
               ],
               [
                  60.6
               ],
               [
                  39.3
               ],
               [
                  58.3
               ],
               [
                  46.6
               ],
               [
                  51.3
               ],
               [
                  68.3
               ],
               [
                  60
               ],
               [
                  64.4
               ],
               [
                  65
               ],
               [
                  56
               ],
               [
                  61.6
               ],
               [
                  58.1
               ],
               [
                  41.4
               ],
               [
                  44.6
               ],
               [
                  51.6
               ],
               [
                  64.4
               ],
               [
                  66.4
               ],
               [
                  61.5
               ],
               [
                  55.9
               ],
               [
                  44.8
               ],
               [
                  64.8
               ],
               [
                  40.9
               ],
               [
                  47.4
               ],
               [
                  61.3
               ],
               [
                  39.5
               ],
               [
                  57.1
               ],
               [
                  64.5
               ],
               [
                  60.4
               ],
               [
                  34.2
               ],
               [
                  53.8
               ],
               [
                  52
               ],
               [
                  59.5
               ],
               [
                  46.3
               ],
               [
                  43.9
               ],
               [
                  35.8
               ],
               [
                  34.4
               ],
               [
                  40.9
               ],
               [
                  56
               ],
               [
                  36.9
               ],
               [
                  53.6
               ],
               [
                  65.9
               ],
               [
                  57.6
               ],
               [
                  40.2
               ],
               [
                  39.9
               ],
               [
                  58.9
               ],
               [
                  52.7
               ],
               [
                  44.4
               ],
               [
                  36.4
               ],
               [
                  62.2
               ],
               [
                  58.9
               ],
               [
                  62.5
               ],
               [
                  58
               ],
               [
                  34.8
               ],
               [
                  39.7
               ],
               [
                  56.5
               ],
               [
                  55.4
               ],
               [
                  41.4
               ],
               [
                  48.1
               ],
               [
                  42.2
               ],
               [
                  42
               ],
               [
                  34.2
               ],
               [
                  67.8
               ],
               [
                  34.8
               ],
               [
                  58
               ],
               [
                  50.7
               ],
               [
                  37.8
               ],
               [
                  66.8
               ],
               [
                  53.7
               ],
               [
                  57.1
               ],
               [
                  67.2
               ],
               [
                  61
               ],
               [
                  62.7
               ],
               [
                  40.4
               ],
               [
                  36.1
               ],
               [
                  60.7
               ],
               [
                  55.1
               ],
               [
                  54
               ],
               [
                  57.9
               ],
               [
                  58
               ],
               [
                  54.3
               ],
               [
                  54.2
               ],
               [
                  41.6
               ],
               [
                  59.2
               ],
               [
                  41
               ],
               [
                  67.1
               ],
               [
                  58.4
               ],
               [
                  37
               ],
               [
                  38.9
               ],
               [
                  65.4
               ],
               [
                  39.4
               ],
               [
                  49
               ],
               [
                  36.1
               ],
               [
                  43.1
               ],
               [
                  34.4
               ],
               [
                  62.3
               ],
               [
                  52.7
               ],
               [
                  42.7
               ],
               [
                  53.9
               ],
               [
                  35.4
               ],
               [
                  39
               ],
               [
                  42.1
               ],
               [
                  52.2
               ],
               [
                  36.8
               ],
               [
                  50.7
               ],
               [
                  50.8
               ],
               [
                  54.5
               ],
               [
                  49.4
               ],
               [
                  34.6
               ],
               [
                  37.9
               ],
               [
                  55.4
               ],
               [
                  48
               ],
               [
                  50.9
               ],
               [
                  50.6
               ],
               [
                  38
               ],
               [
                  61.8
               ],
               [
                  65.1
               ],
               [
                  34.9
               ]
            ]
         }
      }

      // Create the configuration for the graph
      var config = {
         "graphType" : "Map",
         "topoJSON" : "https://www.canvasxpress.org/data/maps/WORLD.json",
         "mapId" : "worldHpi",
         "theme" : "paulTol",
         "colorBy" : "Wellbeing index",
         "colorSpectrum" : [
            "#c51b7d",
            "#f7f7f7",
            "#4d9221"
         ],
         "colorSpectrumZeroValue" : 51,
         "title" : "How well does the planet live?",
         "subtitle" : "Synthetic wellbeing-efficiency index by country (34 = low, 68 = high). Synthetic data for illustration",
         "legendPosition" : "bottomLeft",
         "legendInside" : true,
         "showLegendTitle" : true,
         "mapColor" : "#dddddd",
         "decorations" : {
            "marker" : [
               {
                  "coords" : [
                     9.9,
                     -84.1
                  ],
                  "label" : "Costa Rica (68.3)",
                  "shape" : "sphere",
                  "size" : 1.6,
                  "color" : "#276419"
               }
            ]
         }
      }

      // Event used to create graph (optional)
      var events = false

            // Call the CanvasXpress function to create the graph
      var cX = new CanvasXpress("canvasId", data, config, events);

    </script>

  </body>

</html>
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/r/cX-map22-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
data=y,
colorBy="Wellbeing index",
colorSpectrum=list("#c51b7d", "#f7f7f7", "#4d9221"),
colorSpectrumZeroValue=51,
decorations=list(marker=list(list(color="#276419", coords=list(9.9, -84.1), label="Costa Rica (68.3)", shape="sphere", size=1.6))),
graphType="Map",
legendInside=TRUE,
legendPosition="bottomLeft",
mapColor="#dddddd",
mapId="worldHpi",
showLegendTitle=TRUE,
subtitle="Synthetic wellbeing-efficiency index by country (34 = low, 68 = high). Synthetic data for illustration",
theme="paulTol",
title="How well does the planet live?",
topoJSON="https://www.canvasxpress.org/data/maps/WORLD.json"
)
from canvasxpress.canvas import CanvasXpress
from canvasxpress.plot import show_in_browser

if __name__ == "__main__":
  # Define the chart with its data and configuration
  chart: CanvasXpress = CanvasXpress(
    render_to = "map21",
    data = {
      "y": {
        "vars": ["AFG", "AGO", "ALB", "ARE", "ARG", "ARM", "AUS", "AUT", "AZE", "BDI", "BEL", "BEN", "BFA", "BGD", "BGR", "BIH", "BLR", "BOL", "BRA", "BWA", "CAF", "CAN", "CHE", "CHL", "CHN", "CIV", "CMR", "COD", "COG", "COL", "CRI", "CUB", "CZE", "DEU", "DNK", "DOM", "DZA", "ECU", "EGY", "ESP", "EST", "ETH", "FIN", "FRA", "GAB", "GBR", "GEO", "GHA", "GIN", "GRC", "GTM", "HND", "HRV", "HTI", "HUN", "IDN", "IND", "IRL", "IRN", "IRQ", "ISL", "ISR", "ITA", "JAM", "JOR", "JPN", "KAZ", "KEN", "KGZ", "KHM", "KOR", "KWT", "LAO", "LBN", "LBR", "LBY", "LKA", "LSO", "LTU", "LVA", "MAR", "MDG", "MEX", "MLI", "MMR", "MNG", "MOZ", "MRT", "MWI", "MYS", "NAM", "NER", "NGA", "NIC", "NLD", "NOR", "NPL", "NZL", "OMN", "PAK", "PAN", "PER", "PHL", "PNG", "POL", "PRK", "PRT", "PRY", "QAT", "ROU", "RUS", "RWA", "SAU", "SDN", "SEN", "SLE", "SLV", "SOM", "SRB", "SVK", "SVN", "SWE", "SYR", "TCD", "TGO", "THA", "TJK", "TKM", "TUN", "TUR", "TZA", "UGA", "UKR", "URY", "USA", "UZB", "VEN", "VNM", "YEM", "ZAF", "ZMB", "ZWE"],
        "smps": ["Wellbeing index"],
        "data": [
          [37.2],
          [36.3],
          [55.5],
          [44.4],
          [45],
          [41.3],
          [51.4],
          [66.4],
          [62.1],
          [34.3],
          [58.1],
          [41.1],
          [36.9],
          [67.5],
          [62.5],
          [50.1],
          [59.2],
          [35.9],
          [49.4],
          [56.3],
          [67.5],
          [41.2],
          [62.8],
          [41.8],
          [40.5],
          [60.6],
          [39.3],
          [58.3],
          [46.6],
          [51.3],
          [68.3],
          [60],
          [64.4],
          [65],
          [56],
          [61.6],
          [58.1],
          [41.4],
          [44.6],
          [51.6],
          [64.4],
          [66.4],
          [61.5],
          [55.9],
          [44.8],
          [64.8],
          [40.9],
          [47.4],
          [61.3],
          [39.5],
          [57.1],
          [64.5],
          [60.4],
          [34.2],
          [53.8],
          [52],
          [59.5],
          [46.3],
          [43.9],
          [35.8],
          [34.4],
          [40.9],
          [56],
          [36.9],
          [53.6],
          [65.9],
          [57.6],
          [40.2],
          [39.9],
          [58.9],
          [52.7],
          [44.4],
          [36.4],
          [62.2],
          [58.9],
          [62.5],
          [58],
          [34.8],
          [39.7],
          [56.5],
          [55.4],
          [41.4],
          [48.1],
          [42.2],
          [42],
          [34.2],
          [67.8],
          [34.8],
          [58],
          [50.7],
          [37.8],
          [66.8],
          [53.7],
          [57.1],
          [67.2],
          [61],
          [62.7],
          [40.4],
          [36.1],
          [60.7],
          [55.1],
          [54],
          [57.9],
          [58],
          [54.3],
          [54.2],
          [41.6],
          [59.2],
          [41],
          [67.1],
          [58.4],
          [37],
          [38.9],
          [65.4],
          [39.4],
          [49],
          [36.1],
          [43.1],
          [34.4],
          [62.3],
          [52.7],
          [42.7],
          [53.9],
          [35.4],
          [39],
          [42.1],
          [52.2],
          [36.8],
          [50.7],
          [50.8],
          [54.5],
          [49.4],
          [34.6],
          [37.9],
          [55.4],
          [48],
          [50.9],
          [50.6],
          [38],
          [61.8],
          [65.1],
          [34.9]
        ]
      }
    },
    config = {
      "graphType": "Map",
      "topoJSON": "https://www.canvasxpress.org/data/maps/WORLD.json",
      "mapId": "worldHpi",
      "theme": "paulTol",
      "colorBy": "Wellbeing index",
      "colorSpectrum": ["#c51b7d", "#f7f7f7", "#4d9221"],
      "colorSpectrumZeroValue": 51,
      "title": "How well does the planet live?",
      "subtitle": "Synthetic wellbeing-efficiency index by country (34 = low, 68 = high). Synthetic data for illustration",
      "legendPosition": "bottomLeft",
      "legendInside": True,
      "showLegendTitle": True,
      "mapColor": "#dddddd",
      "decorations": {
        "marker": [
          {
            "coords": [9.9, -84.1],
            "label": "Costa Rica (68.3)",
            "shape": "sphere",
            "size": 1.6,
            "color": "#276419"
          }
        ]
      }
    },
    width = 760,
    height = 560
  )

  # Display the chart in its own Web page
  show_in_browser(chart)
Run this notebook: Open in Binder
from canvasxpress.canvas import CanvasXpress
from canvasxpress.plot import graph

graph(
  CanvasXpress(
    render_to = "map21",
    data = {
      "y": {
        "vars": ["AFG", "AGO", "ALB", "ARE", "ARG", "ARM", "AUS", "AUT", "AZE", "BDI", "BEL", "BEN", "BFA", "BGD", "BGR", "BIH", "BLR", "BOL", "BRA", "BWA", "CAF", "CAN", "CHE", "CHL", "CHN", "CIV", "CMR", "COD", "COG", "COL", "CRI", "CUB", "CZE", "DEU", "DNK", "DOM", "DZA", "ECU", "EGY", "ESP", "EST", "ETH", "FIN", "FRA", "GAB", "GBR", "GEO", "GHA", "GIN", "GRC", "GTM", "HND", "HRV", "HTI", "HUN", "IDN", "IND", "IRL", "IRN", "IRQ", "ISL", "ISR", "ITA", "JAM", "JOR", "JPN", "KAZ", "KEN", "KGZ", "KHM", "KOR", "KWT", "LAO", "LBN", "LBR", "LBY", "LKA", "LSO", "LTU", "LVA", "MAR", "MDG", "MEX", "MLI", "MMR", "MNG", "MOZ", "MRT", "MWI", "MYS", "NAM", "NER", "NGA", "NIC", "NLD", "NOR", "NPL", "NZL", "OMN", "PAK", "PAN", "PER", "PHL", "PNG", "POL", "PRK", "PRT", "PRY", "QAT", "ROU", "RUS", "RWA", "SAU", "SDN", "SEN", "SLE", "SLV", "SOM", "SRB", "SVK", "SVN", "SWE", "SYR", "TCD", "TGO", "THA", "TJK", "TKM", "TUN", "TUR", "TZA", "UGA", "UKR", "URY", "USA", "UZB", "VEN", "VNM", "YEM", "ZAF", "ZMB", "ZWE"],
        "smps": ["Wellbeing index"],
        "data": [
          [37.2],
          [36.3],
          [55.5],
          [44.4],
          [45],
          [41.3],
          [51.4],
          [66.4],
          [62.1],
          [34.3],
          [58.1],
          [41.1],
          [36.9],
          [67.5],
          [62.5],
          [50.1],
          [59.2],
          [35.9],
          [49.4],
          [56.3],
          [67.5],
          [41.2],
          [62.8],
          [41.8],
          [40.5],
          [60.6],
          [39.3],
          [58.3],
          [46.6],
          [51.3],
          [68.3],
          [60],
          [64.4],
          [65],
          [56],
          [61.6],
          [58.1],
          [41.4],
          [44.6],
          [51.6],
          [64.4],
          [66.4],
          [61.5],
          [55.9],
          [44.8],
          [64.8],
          [40.9],
          [47.4],
          [61.3],
          [39.5],
          [57.1],
          [64.5],
          [60.4],
          [34.2],
          [53.8],
          [52],
          [59.5],
          [46.3],
          [43.9],
          [35.8],
          [34.4],
          [40.9],
          [56],
          [36.9],
          [53.6],
          [65.9],
          [57.6],
          [40.2],
          [39.9],
          [58.9],
          [52.7],
          [44.4],
          [36.4],
          [62.2],
          [58.9],
          [62.5],
          [58],
          [34.8],
          [39.7],
          [56.5],
          [55.4],
          [41.4],
          [48.1],
          [42.2],
          [42],
          [34.2],
          [67.8],
          [34.8],
          [58],
          [50.7],
          [37.8],
          [66.8],
          [53.7],
          [57.1],
          [67.2],
          [61],
          [62.7],
          [40.4],
          [36.1],
          [60.7],
          [55.1],
          [54],
          [57.9],
          [58],
          [54.3],
          [54.2],
          [41.6],
          [59.2],
          [41],
          [67.1],
          [58.4],
          [37],
          [38.9],
          [65.4],
          [39.4],
          [49],
          [36.1],
          [43.1],
          [34.4],
          [62.3],
          [52.7],
          [42.7],
          [53.9],
          [35.4],
          [39],
          [42.1],
          [52.2],
          [36.8],
          [50.7],
          [50.8],
          [54.5],
          [49.4],
          [34.6],
          [37.9],
          [55.4],
          [48],
          [50.9],
          [50.6],
          [38],
          [61.8],
          [65.1],
          [34.9]
        ]
      }
    },
    config = {
      "graphType": "Map",
      "topoJSON": "https://www.canvasxpress.org/data/maps/WORLD.json",
      "mapId": "worldHpi",
      "theme": "paulTol",
      "colorBy": "Wellbeing index",
      "colorSpectrum": ["#c51b7d", "#f7f7f7", "#4d9221"],
      "colorSpectrumZeroValue": 51,
      "title": "How well does the planet live?",
      "subtitle": "Synthetic wellbeing-efficiency index by country (34 = low, 68 = high). Synthetic data for illustration",
      "legendPosition": "bottomLeft",
      "legendInside": True,
      "showLegendTitle": True,
      "mapColor": "#dddddd",
      "decorations": {
        "marker": [
          {
            "coords": [9.9, -84.1],
            "label": "Costa Rica (68.3)",
            "shape": "sphere",
            "size": 1.6,
            "color": "#276419"
          }
        ]
      }
    },
    width = 760,
    height = 560
  )
)
using CanvasXpress

canvasxpress(Dict(
  "y" => Dict(
    "vars" => ["AFG", "AGO", "ALB", "ARE", "ARG", "ARM", "AUS", "AUT", "AZE", "BDI", "BEL", "BEN", "BFA", "BGD", "BGR", "BIH", "BLR", "BOL", "BRA", "BWA", "CAF", "CAN", "CHE", "CHL", "CHN", "CIV", "CMR", "COD", "COG", "COL", "CRI", "CUB", "CZE", "DEU", "DNK", "DOM", "DZA", "ECU", "EGY", "ESP", "EST", "ETH", "FIN", "FRA", "GAB", "GBR", "GEO", "GHA", "GIN", "GRC", "GTM", "HND", "HRV", "HTI", "HUN", "IDN", "IND", "IRL", "IRN", "IRQ", "ISL", "ISR", "ITA", "JAM", "JOR", "JPN", "KAZ", "KEN", "KGZ", "KHM", "KOR", "KWT", "LAO", "LBN", "LBR", "LBY", "LKA", "LSO", "LTU", "LVA", "MAR", "MDG", "MEX", "MLI", "MMR", "MNG", "MOZ", "MRT", "MWI", "MYS", "NAM", "NER", "NGA", "NIC", "NLD", "NOR", "NPL", "NZL", "OMN", "PAK", "PAN", "PER", "PHL", "PNG", "POL", "PRK", "PRT", "PRY", "QAT", "ROU", "RUS", "RWA", "SAU", "SDN", "SEN", "SLE", "SLV", "SOM", "SRB", "SVK", "SVN", "SWE", "SYR", "TCD", "TGO", "THA", "TJK", "TKM", "TUN", "TUR", "TZA", "UGA", "UKR", "URY", "USA", "UZB", "VEN", "VNM", "YEM", "ZAF", "ZMB", "ZWE"],
    "smps" => ["Wellbeing index"],
    "data" => [
      [37.2],
      [36.3],
      [55.5],
      [44.4],
      [45],
      [41.3],
      [51.4],
      [66.4],
      [62.1],
      [34.3],
      [58.1],
      [41.1],
      [36.9],
      [67.5],
      [62.5],
      [50.1],
      [59.2],
      [35.9],
      [49.4],
      [56.3],
      [67.5],
      [41.2],
      [62.8],
      [41.8],
      [40.5],
      [60.6],
      [39.3],
      [58.3],
      [46.6],
      [51.3],
      [68.3],
      [60],
      [64.4],
      [65],
      [56],
      [61.6],
      [58.1],
      [41.4],
      [44.6],
      [51.6],
      [64.4],
      [66.4],
      [61.5],
      [55.9],
      [44.8],
      [64.8],
      [40.9],
      [47.4],
      [61.3],
      [39.5],
      [57.1],
      [64.5],
      [60.4],
      [34.2],
      [53.8],
      [52],
      [59.5],
      [46.3],
      [43.9],
      [35.8],
      [34.4],
      [40.9],
      [56],
      [36.9],
      [53.6],
      [65.9],
      [57.6],
      [40.2],
      [39.9],
      [58.9],
      [52.7],
      [44.4],
      [36.4],
      [62.2],
      [58.9],
      [62.5],
      [58],
      [34.8],
      [39.7],
      [56.5],
      [55.4],
      [41.4],
      [48.1],
      [42.2],
      [42],
      [34.2],
      [67.8],
      [34.8],
      [58],
      [50.7],
      [37.8],
      [66.8],
      [53.7],
      [57.1],
      [67.2],
      [61],
      [62.7],
      [40.4],
      [36.1],
      [60.7],
      [55.1],
      [54],
      [57.9],
      [58],
      [54.3],
      [54.2],
      [41.6],
      [59.2],
      [41],
      [67.1],
      [58.4],
      [37],
      [38.9],
      [65.4],
      [39.4],
      [49],
      [36.1],
      [43.1],
      [34.4],
      [62.3],
      [52.7],
      [42.7],
      [53.9],
      [35.4],
      [39],
      [42.1],
      [52.2],
      [36.8],
      [50.7],
      [50.8],
      [54.5],
      [49.4],
      [34.6],
      [37.9],
      [55.4],
      [48],
      [50.9],
      [50.6],
      [38],
      [61.8],
      [65.1],
      [34.9]
    ]
  )
);
  graphType = "Map",
  topoJSON = "https://www.canvasxpress.org/data/maps/WORLD.json",
  mapId = "worldHpi",
  theme = "paulTol",
  colorBy = "Wellbeing index",
  colorSpectrum = ["#c51b7d", "#f7f7f7", "#4d9221"],
  colorSpectrumZeroValue = 51,
  title = "How well does the planet live?",
  subtitle = "Synthetic wellbeing-efficiency index by country (34 = low, 68 = high). Synthetic data for illustration",
  legendPosition = "bottomLeft",
  legendInside = true,
  showLegendTitle = true,
  mapColor = "#dddddd",
  decorations = Dict(
    "marker" => [
      Dict(
        "coords" => [9.9, -84.1],
        "label" => "Costa Rica (68.3)",
        "shape" => "sphere",
        "size" => 1.6,
        "color" => "#276419"
      )
    ]
  )
)
⇧