In [1]:
require 'daru/view'
Out[1]:
true
In [2]:
Daru::View.plotting_library = :highcharts
Out[2]:
:highcharts
In [3]:
opts = {
        chart: {
          map: 'custom/world'
        },

        title: {
            text: 'Fixed tooltip with HTML'
        },

        legend: {
            title: {
                text: 'Population density per km²'
            }
        },

        mapNavigation: {
            enabled: true,
            buttonOptions: {
                verticalAlign: 'bottom'
            }
        },

        tooltip: {
            backgroundColor: 'none',
            borderWidth: 0,
            shadow: false,
            useHTML: true,
            padding: 0,
            pointFormat: '<span class="f32"><span class="flag {point.properties.hc-key}">' +
                '</span></span> {point.name}<br>' +
                '<span style="font-size:30px">{point.value}/km²</span>',
            positioner: "function () {
                            return { x: 0, y: 250 };
                        }"
        },

        colorAxis: {
          min: 1,
          max: 1000,
          dataClasses: [{
              to: 5,
              color: '#e8f5e9',
              name: 'Weak'
          }, {
              from: 5,
              to: 20,
              color: '#81c784',
              name: 'Average'
          }, {
              from: 20,
              to: 200,
              color: '#43a047',
              name: 'Strong'
          }, {
              from: 200,
              color: '#1b5e20',
              name: 'Highly Dense'
          }]
        }
      }

series_dt = [{
    data: [
            {
                "code3": "ABW",
                "name": "Aruba",
                "value": 583
            },
            {
                "code3": "AFG",
                "name": "Afghanistan",
                "value": 54
            },
            {
                "code3": "AGO",
                "name": "Angola",
                "value": 24
            },
            {
                "code3": "ALB",
                "name": "Albania",
                "value": 105
            },
            {
                "code3": "AND",
                "name": "Andorra",
                "value": 164
            },
            {
                "code3": "ARB",
                "name": "Arab World",
                "value": 30
            },
            {
                "code3": "ARE",
                "name": "United Arab Emirates",
                "value": 112
            },
            {
                "code3": "ARG",
                "name": "Argentina",
                "value": 16
            },
            {
                "code3": "ARM",
                "name": "Armenia",
                "value": 103
            },
            {
                "code3": "ASM",
                "name": "American Samoa",
                "value": 280
            },
            {
                "code3": "ATG",
                "name": "Antigua and Barbuda",
                "value": 232
            },
            {
                "code3": "AUS",
                "name": "Australia",
                "value": 3
            },
            {
                "code3": "AUT",
                "name": "Austria",
                "value": 106
            },
            {
                "code3": "AZE",
                "name": "Azerbaijan",
                "value": 119
            },
            {
                "code3": "BDI",
                "name": "Burundi",
                "value": 423
            },
            {
                "code3": "BEL",
                "name": "Belgium",
                "value": 377
            },
            {
                "code3": "BEN",
                "name": "Benin",
                "value": 99
            },
            {
                "code3": "BFA",
                "name": "Burkina Faso",
                "value": 70
            },
            {
                "code3": "BGD",
                "name": "Bangladesh",
                "value": 1265
            },
            {
                "code3": "BGR",
                "name": "Bulgaria",
                "value": 65
            },
            {
                "code3": "BHR",
                "name": "Bahrain",
                "value": 1936
            },
            {
                "code3": "BHS",
                "name": "Bahamas, The",
                "value": 39
            },
            {
                "code3": "BIH",
                "name": "Bosnia and Herzegovina",
                "value": 68
            },
            {
                "code3": "BLR",
                "name": "Belarus",
                "value": 47
            },
            {
                "code3": "BLZ",
                "name": "Belize",
                "value": 16
            },
            {
                "code3": "BMU",
                "name": "Bermuda",
                "value": 1307
            },
            {
                "code3": "BOL",
                "name": "Bolivia",
                "value": 10
            },
            {
                "code3": "BRA",
                "name": "Brazil",
                "value": 25
            },
            {
                "code3": "BRB",
                "name": "Barbados",
                "value": 665
            },
            {
                "code3": "BRN",
                "name": "Brunei Darussalam",
                "value": 81
            },
            {
                "code3": "BTN",
                "name": "Bhutan",
                "value": 21
            },
            {
                "code3": "BWA",
                "name": "Botswana",
                "value": 4
            },
            {
                "code3": "CAF",
                "name": "Central African Republic",
                "value": 7
            },
            {
                "code3": "CAN",
                "name": "Canada",
                "value": 4
            },
            {
                "code3": "CEB",
                "name": "Central Europe and the Baltics",
                "value": 93
            },
            {
                "code3": "CHE",
                "name": "Switzerland",
                "value": 214
            },
            {
                "code3": "CHI",
                "name": "Channel Islands",
                "value": 868
            },
            {
                "code3": "CHL",
                "name": "Chile",
                "value": 24
            },
            {
                "code3": "CHN",
                "name": "China",
                "value": 147
            },
            {
                "code3": "CIV",
                "name": "Cote d'Ivoire",
                "value": 76
            },
            {
                "code3": "CMR",
                "name": "Cameroon",
                "value": 51
            },
            {
                "code3": "COD",
                "name": "Congo, Dem. Rep.",
                "value": 36
            },
            {
                "code3": "COG",
                "name": "Congo, Rep.",
                "value": 15
            },
            {
                "code3": "COL",
                "name": "Colombia",
                "value": 44
            },
            {
                "code3": "COM",
                "name": "Comoros",
                "value": 437
            },
            {
                "code3": "CPV",
                "name": "Cabo Verde",
                "value": 135
            },
            {
                "code3": "CRI",
                "name": "Costa Rica",
                "value": 96
            },
            {
                "code3": "CSS",
                "name": "Caribbean small states",
                "value": 18
            },
            {
                "code3": "CUB",
                "name": "Cuba",
                "value": 110
            },
            {
                "code3": "CUW",
                "name": "Curacao",
                "value": 363
            },
            {
                "code3": "CYM",
                "name": "Cayman Islands",
                "value": 258
            },
            {
                "code3": "CYP",
                "name": "Cyprus",
                "value": 128
            },
            {
                "code3": "CZE",
                "name": "Czech Republic",
                "value": 137
            },
            {
                "code3": "DEU",
                "name": "Germany",
                "value": 237
            },
            {
                "code3": "DJI",
                "name": "Djibouti",
                "value": 41
            },
            {
                "code3": "DMA",
                "name": "Dominica",
                "value": 99
            },
            {
                "code3": "DNK",
                "name": "Denmark",
                "value": 136
            },
            {
                "code3": "DOM",
                "name": "Dominican Republic",
                "value": 223
            },
            {
                "code3": "DZA",
                "name": "Algeria",
                "value": 17
            },
            {
                "code3": "EAP",
                "name": "East Asia & Pacific (excluding high income)",
                "value": 130
            },
            {
                "code3": "EAR",
                "name": "Early-demographic dividend",
                "value": 97
            },
            {
                "code3": "EAS",
                "name": "East Asia & Pacific",
                "value": 95
            },
            {
                "code3": "ECA",
                "name": "Europe & Central Asia (excluding high income)",
                "value": 18
            },
            {
                "code3": "ECS",
                "name": "Europe & Central Asia",
                "value": 33
            },
            {
                "code3": "ECU",
                "name": "Ecuador",
                "value": 67
            },
            {
                "code3": "EGY",
                "name": "Egypt, Arab Rep.",
                "value": 98
            },
            {
                "code3": "EMU",
                "name": "Euro area",
                "value": 127
            },
            {
                "code3": "ESP",
                "name": "Spain",
                "value": 93
            },
            {
                "code3": "EST",
                "name": "Estonia",
                "value": 31
            },
            {
                "code3": "ETH",
                "name": "Ethiopia",
                "value": 105
            },
            {
                "code3": "EUU",
                "name": "European Union",
                "value": 121
            },
            {
                "code3": "FCS",
                "name": "Fragile and conflict affected situations",
                "value": 34
            },
            {
                "code3": "FIN",
                "name": "Finland",
                "value": 18
            },
            {
                "code3": "FJI",
                "name": "Fiji",
                "value": 50
            },
            {
                "code3": "FRA",
                "name": "France",
                "value": 123
            },
            {
                "code3": "FRO",
                "name": "Faroe Islands",
                "value": 35
            },
            {
                "code3": "FSM",
                "name": "Micronesia, Fed. Sts.",
                "value": 151
            },
            {
                "code3": "GAB",
                "name": "Gabon",
                "value": 8
            },
            {
                "code3": "GBR",
                "name": "United Kingdom",
                "value": 273
            },
            {
                "code3": "GEO",
                "name": "Georgia",
                "value": 53
            },
            {
                "code3": "GHA",
                "name": "Ghana",
                "value": 127
            },
            {
                "code3": "GIB",
                "name": "Gibraltar",
                "value": 3500
            },
            {
                "code3": "GIN",
                "name": "Guinea",
                "value": 52
            },
            {
                "code3": "GMB",
                "name": "Gambia, The",
                "value": 208
            },
            {
                "code3": "GNB",
                "name": "Guinea-Bissau",
                "value": 66
            },
            {
                "code3": "GNQ",
                "name": "Equatorial Guinea",
                "value": 45
            },
            {
                "code3": "GRC",
                "name": "Greece",
                "value": 83
            },
            {
                "code3": "GRD",
                "name": "Grenada",
                "value": 318
            },
            {
                "code3": "GRL",
                "name": "Greenland",
                "value": 1
            },
            {
                "code3": "GTM",
                "name": "Guatemala",
                "value": 158
            },
            {
                "code3": "GUM",
                "name": "Guam",
                "value": 304
            },
            {
                "code3": "GUY",
                "name": "Guyana",
                "value": 4
            },
            {
                "code3": "HIC",
                "name": "High income",
                "value": 34
            },
            {
                "code3": "HKG",
                "name": "Hong Kong SAR, China",
                "value": 7053
            },
            {
                "code3": "HND",
                "name": "Honduras",
                "value": 83
            },
            {
                "code3": "HPC",
                "name": "Heavily indebted poor countries (HIPC)",
                "value": 39
            },
            {
                "code3": "HRV",
                "name": "Croatia",
                "value": 74
            },
            {
                "code3": "HTI",
                "name": "Haiti",
                "value": 398
            },
            {
                "code3": "HUN",
                "name": "Hungary",
                "value": 108
            },
            {
                "code3": "IBD",
                "name": "IBRD only",
                "value": 68
            },
            {
                "code3": "IBT",
                "name": "IDA & IBRD total",
                "value": 66
            },
            {
                "code3": "IDA",
                "name": "IDA total",
                "value": 61
            },
            {
                "code3": "IDB",
                "name": "IDA blend",
                "value": 90
            },
            {
                "code3": "IDN",
                "name": "Indonesia",
                "value": 146
            },
            {
                "code3": "IDX",
                "name": "IDA only",
                "value": 53
            },
            {
                "code3": "IMN",
                "name": "Isle of Man",
                "value": 147
            },
            {
                "code3": "IND",
                "name": "India",
                "value": 450
            },
            {
                "code3": "IRL",
                "name": "Ireland",
                "value": 70
            },
            {
                "code3": "IRN",
                "name": "Iran, Islamic Rep.",
                "value": 50
            },
            {
                "code3": "IRQ",
                "name": "Iraq",
                "value": 88
            },
            {
                "code3": "ISL",
                "name": "Iceland",
                "value": 3
            },
            {
                "code3": "ISR",
                "name": "Israel",
                "value": 401
            },
            {
                "code3": "ITA",
                "name": "Italy",
                "value": 206
            },
            {
                "code3": "JAM",
                "name": "Jamaica",
                "value": 267
            },
            {
                "code3": "JOR",
                "name": "Jordan",
                "value": 109
            },
            {
                "code3": "JPN",
                "name": "Japan",
                "value": 347
            },
            {
                "code3": "KAZ",
                "name": "Kazakhstan",
                "value": 7
            },
            {
                "code3": "KEN",
                "name": "Kenya",
                "value": 87
            },
            {
                "code3": "KGZ",
                "name": "Kyrgyz Republic",
                "value": 32
            },
            {
                "code3": "KHM",
                "name": "Cambodia",
                "value": 91
            },
            {
                "code3": "KIR",
                "name": "Kiribati",
                "value": 143
            },
            {
                "code3": "KNA",
                "name": "St. Kitts and Nevis",
                "value": 212
            },
            {
                "code3": "KOR",
                "name": "Korea, Rep.",
                "value": 528
            },
            {
                "code3": "KWT",
                "name": "Kuwait",
                "value": 232
            },
            {
                "code3": "LAC",
                "name": "Latin America & Caribbean (excluding high income)",
                "value": 32
            },
            {
                "code3": "LAO",
                "name": "Lao PDR",
                "value": 30
            },
            {
                "code3": "LBN",
                "name": "Lebanon",
                "value": 595
            },
            {
                "code3": "LBR",
                "name": "Liberia",
                "value": 49
            },
            {
                "code3": "LBY",
                "name": "Libya",
                "value": 4
            },
            {
                "code3": "LCA",
                "name": "St. Lucia",
                "value": 293
            },
            {
                "code3": "LCN",
                "name": "Latin America & Caribbean",
                "value": 32
            },
            {
                "code3": "LDC",
                "name": "Least developed countries: UN classification",
                "value": 50
            },
            {
                "code3": "LIC",
                "name": "Low income",
                "value": 51
            },
            {
                "code3": "LIE",
                "name": "Liechtenstein",
                "value": 238
            },
            {
                "code3": "LKA",
                "name": "Sri Lanka",
                "value": 340
            },
            {
                "code3": "LMC",
                "name": "Lower middle income",
                "value": 132
            },
            {
                "code3": "LMY",
                "name": "Low & middle income",
                "value": 67
            },
            {
                "code3": "LSO",
                "name": "Lesotho",
                "value": 74
            },
            {
                "code3": "LTE",
                "name": "Late-demographic dividend",
                "value": 51
            },
            {
                "code3": "LTU",
                "name": "Lithuania",
                "value": 46
            },
            {
                "code3": "LUX",
                "name": "Luxembourg",
                "value": 228
            },
            {
                "code3": "LVA",
                "name": "Latvia",
                "value": 31
            },
            {
                "code3": "MAC",
                "name": "Macao SAR, China",
                "value": 20767
            },
            {
                "code3": "MAF",
                "name": "St. Martin (French part)",
                "value": 592
            },
            {
                "code3": "MAR",
                "name": "Morocco",
                "value": 80
            },
            {
                "code3": "MCO",
                "name": "Monaco",
                "value": 19500
            },
            {
                "code3": "MDA",
                "name": "Moldova",
                "value": 108
            },
            {
                "code3": "MDG",
                "name": "Madagascar",
                "value": 44
            },
            {
                "code3": "MDV",
                "name": "Maldives",
                "value": 1410
            },
            {
                "code3": "MEA",
                "name": "Middle East & North Africa",
                "value": 40
            },
            {
                "code3": "MEX",
                "name": "Mexico",
                "value": 66
            },
            {
                "code3": "MHL",
                "name": "Marshall Islands",
                "value": 294
            },
            {
                "code3": "MIC",
                "name": "Middle income",
                "value": 69
            },
            {
                "code3": "MKD",
                "name": "Macedonia, FYR",
                "value": 83
            },
            {
                "code3": "MLI",
                "name": "Mali",
                "value": 15
            },
            {
                "code3": "MLT",
                "name": "Malta",
                "value": 1372
            },
            {
                "code3": "MMR",
                "name": "Myanmar",
                "value": 82
            },
            {
                "code3": "MNA",
                "name": "Middle East & North Africa (excluding high income)",
                "value": 44
            },
            {
                "code3": "MNE",
                "name": "Montenegro",
                "value": 46
            },
            {
                "code3": "MNG",
                "name": "Mongolia",
                "value": 2
            },
            {
                "code3": "MNP",
                "name": "Northern Mariana Islands",
                "value": 120
            },
            {
                "code3": "MOZ",
                "name": "Mozambique",
                "value": 38
            },
            {
                "code3": "MRT",
                "name": "Mauritania",
                "value": 4
            },
            {
                "code3": "MUS",
                "name": "Mauritius",
                "value": 624
            },
            {
                "code3": "MWI",
                "name": "Malawi",
                "value": 198
            },
            {
                "code3": "MYS",
                "name": "Malaysia",
                "value": 96
            },
            {
                "code3": "NAC",
                "name": "North America",
                "value": 20
            },
            {
                "code3": "NAM",
                "name": "Namibia",
                "value": 3
            },
            {
                "code3": "NCL",
                "name": "New Caledonia",
                "value": 15
            },
            {
                "code3": "NER",
                "name": "Niger",
                "value": 17
            },
            {
                "code3": "NGA",
                "name": "Nigeria",
                "value": 210
            },
            {
                "code3": "NIC",
                "name": "Nicaragua",
                "value": 52
            },
            {
                "code3": "NLD",
                "name": "Netherlands",
                "value": 507
            },
            {
                "code3": "NOR",
                "name": "Norway",
                "value": 14
            },
            {
                "code3": "NPL",
                "name": "Nepal",
                "value": 204
            },
            {
                "code3": "NRU",
                "name": "Nauru",
                "value": 650
            },
            {
                "code3": "NZL",
                "name": "New Zealand",
                "value": 18
            },
            {
                "code3": "OED",
                "name": "OECD members",
                "value": 38
            },
            {
                "code3": "OMN",
                "name": "Oman",
                "value": 15
            },
            {
                "code3": "OSS",
                "name": "Other small states",
                "value": 15
            },
            {
                "code3": "PAK",
                "name": "Pakistan",
                "value": 256
            },
            {
                "code3": "PAN",
                "name": "Panama",
                "value": 55
            },
            {
                "code3": "PER",
                "name": "Peru",
                "value": 25
            },
            {
                "code3": "PHL",
                "name": "Philippines",
                "value": 352
            },
            {
                "code3": "PLW",
                "name": "Palau",
                "value": 48
            },
            {
                "code3": "PNG",
                "name": "Papua New Guinea",
                "value": 18
            },
            {
                "code3": "POL",
                "name": "Poland",
                "value": 124
            },
            {
                "code3": "PRE",
                "name": "Pre-demographic dividend",
                "value": 45
            },
            {
                "code3": "PRI",
                "name": "Puerto Rico",
                "value": 384
            },
            {
                "code3": "PRK",
                "name": "Korea, Dem. People’s Rep.",
                "value": 212
            },
            {
                "code3": "PRT",
                "name": "Portugal",
                "value": 112
            },
            {
                "code3": "PRY",
                "name": "Paraguay",
                "value": 17
            },
            {
                "code3": "PSE",
                "name": "West Bank and Gaza",
                "value": 776
            },
            {
                "code3": "PSS",
                "name": "Pacific island small states",
                "value": 38
            },
            {
                "code3": "PST",
                "name": "Post-demographic dividend",
                "value": 35
            },
            {
                "code3": "PYF",
                "name": "French Polynesia",
                "value": 77
            },
            {
                "code3": "QAT",
                "name": "Qatar",
                "value": 227
            },
            {
                "code3": "ROU",
                "name": "Romania",
                "value": 85
            },
            {
                "code3": "RUS",
                "name": "Russian Federation",
                "value": 9
            },
            {
                "code3": "RWA",
                "name": "Rwanda",
                "value": 495
            },
            {
                "code3": "SAS",
                "name": "South Asia",
                "value": 375
            },
            {
                "code3": "SAU",
                "name": "Saudi Arabia",
                "value": 15
            },
            {
                "code3": "SDN",
                "name": "Sudan",
                "value": 17
            },
            {
                "code3": "SEN",
                "name": "Senegal",
                "value": 82
            },
            {
                "code3": "SGP",
                "name": "Singapore",
                "value": 8023
            },
            {
                "code3": "SLB",
                "name": "Solomon Islands",
                "value": 22
            },
            {
                "code3": "SLE",
                "name": "Sierra Leone",
                "value": 105
            },
            {
                "code3": "SLV",
                "name": "El Salvador",
                "value": 308
            },
            {
                "code3": "SMR",
                "name": "San Marino",
                "value": 550
            },
            {
                "code3": "SOM",
                "name": "Somalia",
                "value": 24
            },
            {
                "code3": "SRB",
                "name": "Serbia",
                "value": 80
            },
            {
                "code3": "SSA",
                "name": "Sub-Saharan Africa (excluding high income)",
                "value": 45
            },
            {
                "code3": "SSF",
                "name": "Sub-Saharan Africa",
                "value": 45
            },
            {
                "code3": "SST",
                "name": "Small states",
                "value": 16
            },
            {
                "code3": "STP",
                "name": "Sao Tome and Principe",
                "value": 213
            },
            {
                "code3": "SUR",
                "name": "Suriname",
                "value": 4
            },
            {
                "code3": "SVK",
                "name": "Slovak Republic",
                "value": 113
            },
            {
                "code3": "SVN",
                "name": "Slovenia",
                "value": 103
            },
            {
                "code3": "SWE",
                "name": "Sweden",
                "value": 24
            },
            {
                "code3": "SWZ",
                "name": "Swaziland",
                "value": 79
            },
            {
                "code3": "SXM",
                "name": "Sint Maarten (Dutch part)",
                "value": 1177
            },
            {
                "code3": "SYC",
                "name": "Seychelles",
                "value": 207
            },
            {
                "code3": "SYR",
                "name": "Syrian Arab Republic",
                "value": 99
            },
            {
                "code3": "TCA",
                "name": "Turks and Caicos Islands",
                "value": 37
            },
            {
                "code3": "TCD",
                "name": "Chad",
                "value": 12
            },
            {
                "code3": "TEA",
                "name": "East Asia & Pacific (IDA & IBRD countries)",
                "value": 129
            },
            {
                "code3": "TEC",
                "name": "Europe & Central Asia (IDA & IBRD countries)",
                "value": 20
            },
            {
                "code3": "TGO",
                "name": "Togo",
                "value": 143
            },
            {
                "code3": "THA",
                "name": "Thailand",
                "value": 135
            },
            {
                "code3": "TJK",
                "name": "Tajikistan",
                "value": 64
            },
            {
                "code3": "TKM",
                "name": "Turkmenistan",
                "value": 12
            },
            {
                "code3": "TLA",
                "name": "Latin America & the Caribbean (IDA & IBRD countries)",
                "value": 32
            },
            {
                "code3": "TLS",
                "name": "Timor-Leste",
                "value": 87
            },
            {
                "code3": "TMN",
                "name": "Middle East & North Africa (IDA & IBRD countries)",
                "value": 43
            },
            {
                "code3": "TON",
                "name": "Tonga",
                "value": 150
            },
            {
                "code3": "TSA",
                "name": "South Asia (IDA & IBRD)",
                "value": 375
            },
            {
                "code3": "TSS",
                "name": "Sub-Saharan Africa (IDA & IBRD countries)",
                "value": 45
            },
            {
                "code3": "TTO",
                "name": "Trinidad and Tobago",
                "value": 267
            },
            {
                "code3": "TUN",
                "name": "Tunisia",
                "value": 74
            },
            {
                "code3": "TUR",
                "name": "Turkey",
                "value": 105
            },
            {
                "code3": "TUV",
                "name": "Tuvalu",
                "value": 367
            },
            {
                "code3": "TZA",
                "name": "Tanzania",
                "value": 65
            },
            {
                "code3": "UGA",
                "name": "Uganda",
                "value": 214
            },
            {
                "code3": "UKR",
                "name": "Ukraine",
                "value": 77
            },
            {
                "code3": "UMC",
                "name": "Upper middle income",
                "value": 45
            },
            {
                "code3": "URY",
                "name": "Uruguay",
                "value": 20
            },
            {
                "code3": "USA",
                "name": "United States",
                "value": 36
            },
            {
                "code3": "UZB",
                "name": "Uzbekistan",
                "value": 76
            },
            {
                "code3": "VCT",
                "name": "St. Vincent and the Grenadines",
                "value": 282
            },
            {
                "code3": "VEN",
                "name": "Venezuela, RB",
                "value": 36
            },
            {
                "code3": "VGB",
                "name": "British Virgin Islands",
                "value": 207
            },
            {
                "code3": "VIR",
                "name": "Virgin Islands (U.S.)",
                "value": 294
            },
            {
                "code3": "VNM",
                "name": "Vietnam",
                "value": 302
            },
            {
                "code3": "VUT",
                "name": "Vanuatu",
                "value": 23
            },
            {
                "code3": "WLD",
                "name": "World",
                "value": 58
            },
            {
                "code3": "WSM",
                "name": "Samoa",
                "value": 69
            },
            {
                "code3": "XKX",
                "name": "Kosovo",
                "value": 167
            },
            {
                "code3": "YEM",
                "name": "Yemen, Rep.",
                "value": 54
            },
            {
                "code3": "ZAF",
                "name": "South Africa",
                "value": 47
            },
            {
                "code3": "ZMB",
                "name": "Zambia",
                "value": 23
            },
            {
                "code3": "ZWE",
                "name": "Zimbabwe",
                "value": 43
            }
        ],
      joinBy: ['iso-a3', 'code3'],
      name: 'Population density',
      states: {
          hover: {
              color: '#a4edba'
          }
      }
  }]

map_world_fix_tooltip = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')
map_world_fix_tooltip.show_in_iruby
Out[3]:
In [4]:
opts = {
        chart: {
            map: 'custom/world'
        },

        title: {
            text: 'Zoom in on country by double click'
        },

        mapNavigation: {
            enabled: true,
            enableDoubleClickZoomTo: true
        },

        colorAxis: {
          min: 1,
          max: 1000,
          dataClasses: [{
              to: 5,
              color: '#e8f5e9',
              name: 'Weak'
          }, {
              from: 5,
              to: 20,
              color: '#81c784',
              name: 'Average'
          }, {
              from: 20,
              to: 200,
              color: '#43a047',
              name: 'Strong'
          }, {
              from: 200,
              color: '#1b5e20',
              name: 'Highly Dense'
          }]
        }
      }

series_dt = [{
    data: [
            {
                "code3": "ABW",
                "name": "Aruba",
                "value": 583
            },
            {
                "code3": "AFG",
                "name": "Afghanistan",
                "value": 54
            },
            {
                "code3": "AGO",
                "name": "Angola",
                "value": 24
            },
            {
                "code3": "ALB",
                "name": "Albania",
                "value": 105
            },
            {
                "code3": "AND",
                "name": "Andorra",
                "value": 164
            },
            {
                "code3": "ARB",
                "name": "Arab World",
                "value": 30
            },
            {
                "code3": "ARE",
                "name": "United Arab Emirates",
                "value": 112
            },
            {
                "code3": "ARG",
                "name": "Argentina",
                "value": 16
            },
            {
                "code3": "ARM",
                "name": "Armenia",
                "value": 103
            },
            {
                "code3": "ASM",
                "name": "American Samoa",
                "value": 280
            },
            {
                "code3": "ATG",
                "name": "Antigua and Barbuda",
                "value": 232
            },
            {
                "code3": "AUS",
                "name": "Australia",
                "value": 3
            },
            {
                "code3": "AUT",
                "name": "Austria",
                "value": 106
            },
            {
                "code3": "AZE",
                "name": "Azerbaijan",
                "value": 119
            },
            {
                "code3": "BDI",
                "name": "Burundi",
                "value": 423
            },
            {
                "code3": "BEL",
                "name": "Belgium",
                "value": 377
            },
            {
                "code3": "BEN",
                "name": "Benin",
                "value": 99
            },
            {
                "code3": "BFA",
                "name": "Burkina Faso",
                "value": 70
            },
            {
                "code3": "BGD",
                "name": "Bangladesh",
                "value": 1265
            },
            {
                "code3": "BGR",
                "name": "Bulgaria",
                "value": 65
            },
            {
                "code3": "BHR",
                "name": "Bahrain",
                "value": 1936
            },
            {
                "code3": "BHS",
                "name": "Bahamas, The",
                "value": 39
            },
            {
                "code3": "BIH",
                "name": "Bosnia and Herzegovina",
                "value": 68
            },
            {
                "code3": "BLR",
                "name": "Belarus",
                "value": 47
            },
            {
                "code3": "BLZ",
                "name": "Belize",
                "value": 16
            },
            {
                "code3": "BMU",
                "name": "Bermuda",
                "value": 1307
            },
            {
                "code3": "BOL",
                "name": "Bolivia",
                "value": 10
            },
            {
                "code3": "BRA",
                "name": "Brazil",
                "value": 25
            },
            {
                "code3": "BRB",
                "name": "Barbados",
                "value": 665
            },
            {
                "code3": "BRN",
                "name": "Brunei Darussalam",
                "value": 81
            },
            {
                "code3": "BTN",
                "name": "Bhutan",
                "value": 21
            },
            {
                "code3": "BWA",
                "name": "Botswana",
                "value": 4
            },
            {
                "code3": "CAF",
                "name": "Central African Republic",
                "value": 7
            },
            {
                "code3": "CAN",
                "name": "Canada",
                "value": 4
            },
            {
                "code3": "CEB",
                "name": "Central Europe and the Baltics",
                "value": 93
            },
            {
                "code3": "CHE",
                "name": "Switzerland",
                "value": 214
            },
            {
                "code3": "CHI",
                "name": "Channel Islands",
                "value": 868
            },
            {
                "code3": "CHL",
                "name": "Chile",
                "value": 24
            },
            {
                "code3": "CHN",
                "name": "China",
                "value": 147
            },
            {
                "code3": "CIV",
                "name": "Cote d'Ivoire",
                "value": 76
            },
            {
                "code3": "CMR",
                "name": "Cameroon",
                "value": 51
            },
            {
                "code3": "COD",
                "name": "Congo, Dem. Rep.",
                "value": 36
            },
            {
                "code3": "COG",
                "name": "Congo, Rep.",
                "value": 15
            },
            {
                "code3": "COL",
                "name": "Colombia",
                "value": 44
            },
            {
                "code3": "COM",
                "name": "Comoros",
                "value": 437
            },
            {
                "code3": "CPV",
                "name": "Cabo Verde",
                "value": 135
            },
            {
                "code3": "CRI",
                "name": "Costa Rica",
                "value": 96
            },
            {
                "code3": "CSS",
                "name": "Caribbean small states",
                "value": 18
            },
            {
                "code3": "CUB",
                "name": "Cuba",
                "value": 110
            },
            {
                "code3": "CUW",
                "name": "Curacao",
                "value": 363
            },
            {
                "code3": "CYM",
                "name": "Cayman Islands",
                "value": 258
            },
            {
                "code3": "CYP",
                "name": "Cyprus",
                "value": 128
            },
            {
                "code3": "CZE",
                "name": "Czech Republic",
                "value": 137
            },
            {
                "code3": "DEU",
                "name": "Germany",
                "value": 237
            },
            {
                "code3": "DJI",
                "name": "Djibouti",
                "value": 41
            },
            {
                "code3": "DMA",
                "name": "Dominica",
                "value": 99
            },
            {
                "code3": "DNK",
                "name": "Denmark",
                "value": 136
            },
            {
                "code3": "DOM",
                "name": "Dominican Republic",
                "value": 223
            },
            {
                "code3": "DZA",
                "name": "Algeria",
                "value": 17
            },
            {
                "code3": "EAP",
                "name": "East Asia & Pacific (excluding high income)",
                "value": 130
            },
            {
                "code3": "EAR",
                "name": "Early-demographic dividend",
                "value": 97
            },
            {
                "code3": "EAS",
                "name": "East Asia & Pacific",
                "value": 95
            },
            {
                "code3": "ECA",
                "name": "Europe & Central Asia (excluding high income)",
                "value": 18
            },
            {
                "code3": "ECS",
                "name": "Europe & Central Asia",
                "value": 33
            },
            {
                "code3": "ECU",
                "name": "Ecuador",
                "value": 67
            },
            {
                "code3": "EGY",
                "name": "Egypt, Arab Rep.",
                "value": 98
            },
            {
                "code3": "EMU",
                "name": "Euro area",
                "value": 127
            },
            {
                "code3": "ESP",
                "name": "Spain",
                "value": 93
            },
            {
                "code3": "EST",
                "name": "Estonia",
                "value": 31
            },
            {
                "code3": "ETH",
                "name": "Ethiopia",
                "value": 105
            },
            {
                "code3": "EUU",
                "name": "European Union",
                "value": 121
            },
            {
                "code3": "FCS",
                "name": "Fragile and conflict affected situations",
                "value": 34
            },
            {
                "code3": "FIN",
                "name": "Finland",
                "value": 18
            },
            {
                "code3": "FJI",
                "name": "Fiji",
                "value": 50
            },
            {
                "code3": "FRA",
                "name": "France",
                "value": 123
            },
            {
                "code3": "FRO",
                "name": "Faroe Islands",
                "value": 35
            },
            {
                "code3": "FSM",
                "name": "Micronesia, Fed. Sts.",
                "value": 151
            },
            {
                "code3": "GAB",
                "name": "Gabon",
                "value": 8
            },
            {
                "code3": "GBR",
                "name": "United Kingdom",
                "value": 273
            },
            {
                "code3": "GEO",
                "name": "Georgia",
                "value": 53
            },
            {
                "code3": "GHA",
                "name": "Ghana",
                "value": 127
            },
            {
                "code3": "GIB",
                "name": "Gibraltar",
                "value": 3500
            },
            {
                "code3": "GIN",
                "name": "Guinea",
                "value": 52
            },
            {
                "code3": "GMB",
                "name": "Gambia, The",
                "value": 208
            },
            {
                "code3": "GNB",
                "name": "Guinea-Bissau",
                "value": 66
            },
            {
                "code3": "GNQ",
                "name": "Equatorial Guinea",
                "value": 45
            },
            {
                "code3": "GRC",
                "name": "Greece",
                "value": 83
            },
            {
                "code3": "GRD",
                "name": "Grenada",
                "value": 318
            },
            {
                "code3": "GRL",
                "name": "Greenland",
                "value": 1
            },
            {
                "code3": "GTM",
                "name": "Guatemala",
                "value": 158
            },
            {
                "code3": "GUM",
                "name": "Guam",
                "value": 304
            },
            {
                "code3": "GUY",
                "name": "Guyana",
                "value": 4
            },
            {
                "code3": "HIC",
                "name": "High income",
                "value": 34
            },
            {
                "code3": "HKG",
                "name": "Hong Kong SAR, China",
                "value": 7053
            },
            {
                "code3": "HND",
                "name": "Honduras",
                "value": 83
            },
            {
                "code3": "HPC",
                "name": "Heavily indebted poor countries (HIPC)",
                "value": 39
            },
            {
                "code3": "HRV",
                "name": "Croatia",
                "value": 74
            },
            {
                "code3": "HTI",
                "name": "Haiti",
                "value": 398
            },
            {
                "code3": "HUN",
                "name": "Hungary",
                "value": 108
            },
            {
                "code3": "IBD",
                "name": "IBRD only",
                "value": 68
            },
            {
                "code3": "IBT",
                "name": "IDA & IBRD total",
                "value": 66
            },
            {
                "code3": "IDA",
                "name": "IDA total",
                "value": 61
            },
            {
                "code3": "IDB",
                "name": "IDA blend",
                "value": 90
            },
            {
                "code3": "IDN",
                "name": "Indonesia",
                "value": 146
            },
            {
                "code3": "IDX",
                "name": "IDA only",
                "value": 53
            },
            {
                "code3": "IMN",
                "name": "Isle of Man",
                "value": 147
            },
            {
                "code3": "IND",
                "name": "India",
                "value": 450
            },
            {
                "code3": "IRL",
                "name": "Ireland",
                "value": 70
            },
            {
                "code3": "IRN",
                "name": "Iran, Islamic Rep.",
                "value": 50
            },
            {
                "code3": "IRQ",
                "name": "Iraq",
                "value": 88
            },
            {
                "code3": "ISL",
                "name": "Iceland",
                "value": 3
            },
            {
                "code3": "ISR",
                "name": "Israel",
                "value": 401
            },
            {
                "code3": "ITA",
                "name": "Italy",
                "value": 206
            },
            {
                "code3": "JAM",
                "name": "Jamaica",
                "value": 267
            },
            {
                "code3": "JOR",
                "name": "Jordan",
                "value": 109
            },
            {
                "code3": "JPN",
                "name": "Japan",
                "value": 347
            },
            {
                "code3": "KAZ",
                "name": "Kazakhstan",
                "value": 7
            },
            {
                "code3": "KEN",
                "name": "Kenya",
                "value": 87
            },
            {
                "code3": "KGZ",
                "name": "Kyrgyz Republic",
                "value": 32
            },
            {
                "code3": "KHM",
                "name": "Cambodia",
                "value": 91
            },
            {
                "code3": "KIR",
                "name": "Kiribati",
                "value": 143
            },
            {
                "code3": "KNA",
                "name": "St. Kitts and Nevis",
                "value": 212
            },
            {
                "code3": "KOR",
                "name": "Korea, Rep.",
                "value": 528
            },
            {
                "code3": "KWT",
                "name": "Kuwait",
                "value": 232
            },
            {
                "code3": "LAC",
                "name": "Latin America & Caribbean (excluding high income)",
                "value": 32
            },
            {
                "code3": "LAO",
                "name": "Lao PDR",
                "value": 30
            },
            {
                "code3": "LBN",
                "name": "Lebanon",
                "value": 595
            },
            {
                "code3": "LBR",
                "name": "Liberia",
                "value": 49
            },
            {
                "code3": "LBY",
                "name": "Libya",
                "value": 4
            },
            {
                "code3": "LCA",
                "name": "St. Lucia",
                "value": 293
            },
            {
                "code3": "LCN",
                "name": "Latin America & Caribbean",
                "value": 32
            },
            {
                "code3": "LDC",
                "name": "Least developed countries: UN classification",
                "value": 50
            },
            {
                "code3": "LIC",
                "name": "Low income",
                "value": 51
            },
            {
                "code3": "LIE",
                "name": "Liechtenstein",
                "value": 238
            },
            {
                "code3": "LKA",
                "name": "Sri Lanka",
                "value": 340
            },
            {
                "code3": "LMC",
                "name": "Lower middle income",
                "value": 132
            },
            {
                "code3": "LMY",
                "name": "Low & middle income",
                "value": 67
            },
            {
                "code3": "LSO",
                "name": "Lesotho",
                "value": 74
            },
            {
                "code3": "LTE",
                "name": "Late-demographic dividend",
                "value": 51
            },
            {
                "code3": "LTU",
                "name": "Lithuania",
                "value": 46
            },
            {
                "code3": "LUX",
                "name": "Luxembourg",
                "value": 228
            },
            {
                "code3": "LVA",
                "name": "Latvia",
                "value": 31
            },
            {
                "code3": "MAC",
                "name": "Macao SAR, China",
                "value": 20767
            },
            {
                "code3": "MAF",
                "name": "St. Martin (French part)",
                "value": 592
            },
            {
                "code3": "MAR",
                "name": "Morocco",
                "value": 80
            },
            {
                "code3": "MCO",
                "name": "Monaco",
                "value": 19500
            },
            {
                "code3": "MDA",
                "name": "Moldova",
                "value": 108
            },
            {
                "code3": "MDG",
                "name": "Madagascar",
                "value": 44
            },
            {
                "code3": "MDV",
                "name": "Maldives",
                "value": 1410
            },
            {
                "code3": "MEA",
                "name": "Middle East & North Africa",
                "value": 40
            },
            {
                "code3": "MEX",
                "name": "Mexico",
                "value": 66
            },
            {
                "code3": "MHL",
                "name": "Marshall Islands",
                "value": 294
            },
            {
                "code3": "MIC",
                "name": "Middle income",
                "value": 69
            },
            {
                "code3": "MKD",
                "name": "Macedonia, FYR",
                "value": 83
            },
            {
                "code3": "MLI",
                "name": "Mali",
                "value": 15
            },
            {
                "code3": "MLT",
                "name": "Malta",
                "value": 1372
            },
            {
                "code3": "MMR",
                "name": "Myanmar",
                "value": 82
            },
            {
                "code3": "MNA",
                "name": "Middle East & North Africa (excluding high income)",
                "value": 44
            },
            {
                "code3": "MNE",
                "name": "Montenegro",
                "value": 46
            },
            {
                "code3": "MNG",
                "name": "Mongolia",
                "value": 2
            },
            {
                "code3": "MNP",
                "name": "Northern Mariana Islands",
                "value": 120
            },
            {
                "code3": "MOZ",
                "name": "Mozambique",
                "value": 38
            },
            {
                "code3": "MRT",
                "name": "Mauritania",
                "value": 4
            },
            {
                "code3": "MUS",
                "name": "Mauritius",
                "value": 624
            },
            {
                "code3": "MWI",
                "name": "Malawi",
                "value": 198
            },
            {
                "code3": "MYS",
                "name": "Malaysia",
                "value": 96
            },
            {
                "code3": "NAC",
                "name": "North America",
                "value": 20
            },
            {
                "code3": "NAM",
                "name": "Namibia",
                "value": 3
            },
            {
                "code3": "NCL",
                "name": "New Caledonia",
                "value": 15
            },
            {
                "code3": "NER",
                "name": "Niger",
                "value": 17
            },
            {
                "code3": "NGA",
                "name": "Nigeria",
                "value": 210
            },
            {
                "code3": "NIC",
                "name": "Nicaragua",
                "value": 52
            },
            {
                "code3": "NLD",
                "name": "Netherlands",
                "value": 507
            },
            {
                "code3": "NOR",
                "name": "Norway",
                "value": 14
            },
            {
                "code3": "NPL",
                "name": "Nepal",
                "value": 204
            },
            {
                "code3": "NRU",
                "name": "Nauru",
                "value": 650
            },
            {
                "code3": "NZL",
                "name": "New Zealand",
                "value": 18
            },
            {
                "code3": "OED",
                "name": "OECD members",
                "value": 38
            },
            {
                "code3": "OMN",
                "name": "Oman",
                "value": 15
            },
            {
                "code3": "OSS",
                "name": "Other small states",
                "value": 15
            },
            {
                "code3": "PAK",
                "name": "Pakistan",
                "value": 256
            },
            {
                "code3": "PAN",
                "name": "Panama",
                "value": 55
            },
            {
                "code3": "PER",
                "name": "Peru",
                "value": 25
            },
            {
                "code3": "PHL",
                "name": "Philippines",
                "value": 352
            },
            {
                "code3": "PLW",
                "name": "Palau",
                "value": 48
            },
            {
                "code3": "PNG",
                "name": "Papua New Guinea",
                "value": 18
            },
            {
                "code3": "POL",
                "name": "Poland",
                "value": 124
            },
            {
                "code3": "PRE",
                "name": "Pre-demographic dividend",
                "value": 45
            },
            {
                "code3": "PRI",
                "name": "Puerto Rico",
                "value": 384
            },
            {
                "code3": "PRK",
                "name": "Korea, Dem. People’s Rep.",
                "value": 212
            },
            {
                "code3": "PRT",
                "name": "Portugal",
                "value": 112
            },
            {
                "code3": "PRY",
                "name": "Paraguay",
                "value": 17
            },
            {
                "code3": "PSE",
                "name": "West Bank and Gaza",
                "value": 776
            },
            {
                "code3": "PSS",
                "name": "Pacific island small states",
                "value": 38
            },
            {
                "code3": "PST",
                "name": "Post-demographic dividend",
                "value": 35
            },
            {
                "code3": "PYF",
                "name": "French Polynesia",
                "value": 77
            },
            {
                "code3": "QAT",
                "name": "Qatar",
                "value": 227
            },
            {
                "code3": "ROU",
                "name": "Romania",
                "value": 85
            },
            {
                "code3": "RUS",
                "name": "Russian Federation",
                "value": 9
            },
            {
                "code3": "RWA",
                "name": "Rwanda",
                "value": 495
            },
            {
                "code3": "SAS",
                "name": "South Asia",
                "value": 375
            },
            {
                "code3": "SAU",
                "name": "Saudi Arabia",
                "value": 15
            },
            {
                "code3": "SDN",
                "name": "Sudan",
                "value": 17
            },
            {
                "code3": "SEN",
                "name": "Senegal",
                "value": 82
            },
            {
                "code3": "SGP",
                "name": "Singapore",
                "value": 8023
            },
            {
                "code3": "SLB",
                "name": "Solomon Islands",
                "value": 22
            },
            {
                "code3": "SLE",
                "name": "Sierra Leone",
                "value": 105
            },
            {
                "code3": "SLV",
                "name": "El Salvador",
                "value": 308
            },
            {
                "code3": "SMR",
                "name": "San Marino",
                "value": 550
            },
            {
                "code3": "SOM",
                "name": "Somalia",
                "value": 24
            },
            {
                "code3": "SRB",
                "name": "Serbia",
                "value": 80
            },
            {
                "code3": "SSA",
                "name": "Sub-Saharan Africa (excluding high income)",
                "value": 45
            },
            {
                "code3": "SSF",
                "name": "Sub-Saharan Africa",
                "value": 45
            },
            {
                "code3": "SST",
                "name": "Small states",
                "value": 16
            },
            {
                "code3": "STP",
                "name": "Sao Tome and Principe",
                "value": 213
            },
            {
                "code3": "SUR",
                "name": "Suriname",
                "value": 4
            },
            {
                "code3": "SVK",
                "name": "Slovak Republic",
                "value": 113
            },
            {
                "code3": "SVN",
                "name": "Slovenia",
                "value": 103
            },
            {
                "code3": "SWE",
                "name": "Sweden",
                "value": 24
            },
            {
                "code3": "SWZ",
                "name": "Swaziland",
                "value": 79
            },
            {
                "code3": "SXM",
                "name": "Sint Maarten (Dutch part)",
                "value": 1177
            },
            {
                "code3": "SYC",
                "name": "Seychelles",
                "value": 207
            },
            {
                "code3": "SYR",
                "name": "Syrian Arab Republic",
                "value": 99
            },
            {
                "code3": "TCA",
                "name": "Turks and Caicos Islands",
                "value": 37
            },
            {
                "code3": "TCD",
                "name": "Chad",
                "value": 12
            },
            {
                "code3": "TEA",
                "name": "East Asia & Pacific (IDA & IBRD countries)",
                "value": 129
            },
            {
                "code3": "TEC",
                "name": "Europe & Central Asia (IDA & IBRD countries)",
                "value": 20
            },
            {
                "code3": "TGO",
                "name": "Togo",
                "value": 143
            },
            {
                "code3": "THA",
                "name": "Thailand",
                "value": 135
            },
            {
                "code3": "TJK",
                "name": "Tajikistan",
                "value": 64
            },
            {
                "code3": "TKM",
                "name": "Turkmenistan",
                "value": 12
            },
            {
                "code3": "TLA",
                "name": "Latin America & the Caribbean (IDA & IBRD countries)",
                "value": 32
            },
            {
                "code3": "TLS",
                "name": "Timor-Leste",
                "value": 87
            },
            {
                "code3": "TMN",
                "name": "Middle East & North Africa (IDA & IBRD countries)",
                "value": 43
            },
            {
                "code3": "TON",
                "name": "Tonga",
                "value": 150
            },
            {
                "code3": "TSA",
                "name": "South Asia (IDA & IBRD)",
                "value": 375
            },
            {
                "code3": "TSS",
                "name": "Sub-Saharan Africa (IDA & IBRD countries)",
                "value": 45
            },
            {
                "code3": "TTO",
                "name": "Trinidad and Tobago",
                "value": 267
            },
            {
                "code3": "TUN",
                "name": "Tunisia",
                "value": 74
            },
            {
                "code3": "TUR",
                "name": "Turkey",
                "value": 105
            },
            {
                "code3": "TUV",
                "name": "Tuvalu",
                "value": 367
            },
            {
                "code3": "TZA",
                "name": "Tanzania",
                "value": 65
            },
            {
                "code3": "UGA",
                "name": "Uganda",
                "value": 214
            },
            {
                "code3": "UKR",
                "name": "Ukraine",
                "value": 77
            },
            {
                "code3": "UMC",
                "name": "Upper middle income",
                "value": 45
            },
            {
                "code3": "URY",
                "name": "Uruguay",
                "value": 20
            },
            {
                "code3": "USA",
                "name": "United States",
                "value": 36
            },
            {
                "code3": "UZB",
                "name": "Uzbekistan",
                "value": 76
            },
            {
                "code3": "VCT",
                "name": "St. Vincent and the Grenadines",
                "value": 282
            },
            {
                "code3": "VEN",
                "name": "Venezuela, RB",
                "value": 36
            },
            {
                "code3": "VGB",
                "name": "British Virgin Islands",
                "value": 207
            },
            {
                "code3": "VIR",
                "name": "Virgin Islands (U.S.)",
                "value": 294
            },
            {
                "code3": "VNM",
                "name": "Vietnam",
                "value": 302
            },
            {
                "code3": "VUT",
                "name": "Vanuatu",
                "value": 23
            },
            {
                "code3": "WLD",
                "name": "World",
                "value": 58
            },
            {
                "code3": "WSM",
                "name": "Samoa",
                "value": 69
            },
            {
                "code3": "XKX",
                "name": "Kosovo",
                "value": 167
            },
            {
                "code3": "YEM",
                "name": "Yemen, Rep.",
                "value": 54
            },
            {
                "code3": "ZAF",
                "name": "South Africa",
                "value": 47
            },
            {
                "code3": "ZMB",
                "name": "Zambia",
                "value": 23
            },
            {
                "code3": "ZWE",
                "name": "Zimbabwe",
                "value": 43
            }
        ],
      joinBy: ['iso-a3', 'code3'],
      name: 'Population density',
      states: {
          hover: {
              color: '#a4edba'
          }
      },
      tooltip: {
                valueSuffix: '/km²'
      }
  }]

map_zoom_in = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')
map_zoom_in.show_in_iruby
Out[4]: