// Prepare demo data
// Data is joined to map using value of 'hc-key' property by default.
// See API docs for 'joinBy' for more info on linking data and map.
var data = [
    ['no-ro-1160', 0],
    ['no-ro-1149', 1],
    ['no-ro-1144', 2],
    ['no-ro-1151', 3],
    ['no-ro-1142', 4],
    ['no-ro-1141', 5],
    ['no-ro-1145', 6],
    ['no-ro-1111', 7],
    ['no-ro-1112', 8],
    ['no-ro-1114', 9],
    ['no-ro-1119', 10],
    ['no-ro-1129', 11],
    ['no-ro-1122', 12],
    ['no-ro-1120', 13],
    ['no-ro-1124', 14],
    ['no-ro-1127', 15],
    ['no-ro-1106', 16],
    ['no-ro-1133', 17],
    ['no-ro-1134', 18],
    ['no-ro-1146', 19],
    ['no-ro-1102', 20],
    ['no-ro-1130', 21],
    ['no-ro-1135', 22],
    ['no-ro-1121', 23],
    ['no-ro-1103', 24],
    ['no-ro-1101', 25]
];

// Create the chart
Highcharts.mapChart('container', {
    chart: {
        map: 'historical/countries/no-2019/no-ro-all-2019'
    },

    title: {
        text: 'Highmaps basic demo'
    },

    subtitle: {
        text: 'Source map: <a href="http://code.highcharts.com/mapdata/historical/countries/no-2019/no-ro-all-2019.js">Rogaland (2019)</a>'
    },

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

    colorAxis: {
        min: 0
    },

    series: [{
        data: data,
        name: 'Random data',
        states: {
            hover: {
                color: '#BADA55'
            }
        },
        dataLabels: {
            enabled: true,
            format: '{point.name}'
        }
    }]
});
