Bayern - Highcharts Maps

Highcharts Maps demo

HTML

<script src="https://code.highcharts.com/maps/highmaps.js"></script>
<script src="https://code.highcharts.com/maps/modules/exporting.js"></script>

<div id="container"></div>

CSS

#container {
    height: 500px;
    min-width: 310px;
    max-width: 800px;
    margin: 0 auto;
}

.loading {
    margin-top: 10em;
    text-align: center;
    color: gray;
}

JavaScript

(async () => {

    const topology = await fetch(
        'https://code.highcharts.com/mapdata/countries/de/de-by-all.topo.json'
    ).then(response => response.json());

    // Prepare demo data. The 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.
    const data = [
        ['de-by-09774000', 10], ['de-by-09673000', 11], ['de-by-09471000', 12],
        ['de-by-09377000', 13], ['de-by-09187000', 14], ['de-by-09372000', 15],
        ['de-by-09674000', 16], ['de-by-09172000', 17], ['de-by-09462000', 18],
        ['de-by-09564000', 19], ['de-by-09162000', 20], ['de-by-09678000', 21],
        ['de-by-09478000', 22], ['de-by-09472000', 23], ['de-by-09184000', 24],
        ['de-by-09262000', 25], ['de-by-09778000', 26], ['de-by-09771000', 27],
        ['de-by-09772000', 28], ['de-by-09671000', 29], ['de-by-09676000', 30],
        ['de-by-09780000', 31], ['de-by-09376000', 32], ['de-by-09576000', 33],
        ['de-by-09777000', 34], ['de-by-09563000', 35], ['de-by-09562000', 36],
        ['de-by-09573000', 37], ['de-by-09575000', 38], ['de-by-09373000', 39],
        ['de-by-09179000', 40], ['de-by-09277000', 41], ['de-by-09271000', 42],
        ['de-by-09473000', 43], ['de-by-09779000', 44], ['de-by-09176000', 45],
        ['de-by-09174000', 46], ['de-by-09177000', 47], ['de-by-09764000', 48],
        ['de-by-09274000', 49], ['de-by-09375000', 50], ['de-by-09186000', 51],
        ['de-by-09183000', 52], ['de-by-09175000', 53], ['de-by-09574000', 54],
        ['de-by-09371000', 55], ['de-by-09776000', 56], ['de-by-09571000', 57],
        ['de-by-09276000', 58], ['de-by-09773000', 59], ['de-by-09479000', 60],
        ['de-by-09374000', 61], ['de-by-09677000', 62], ['de-by-09363000', 63],
        ['de-by-09672000', 64], ['de-by-09180000', 65], ['de-by-09461000', 66],
        ['de-by-09275000', 67], ['de-by-09679000', 68], ['de-by-09272000', 69],
        ['de-by-09189000', 70],...