Hi,
How to do a simple map with qualitative data?
(all demos are with quantitative data)
map: 'countries/fr/fr-all'
Example:
https://www.france-politique.fr/electio ... GAUCHE.htm
Highcharts.mapChart('container', {
chart: {
map: 'countries/fr/fr-all',
spacingBottom: 20
},
title: {
text: 'POLITIQUE DES REGIONS'
},
legend: {
enabled: true
},
plotOptions: {
map: {
allAreas: false,
joinBy: ['iso-a2', 'code'],
dataLabels: {
enabled: true,
color: '#FFFFFF',
style: {
fontWeight: 'bold'
},
// Only show dataLabels for areas with high label rank
format: null,
formatter: function () {
if (this.point.properties && this.point.properties.labelrank.toString() < 5) {
return this.point.properties['iso-a2'];
}
}
},
tooltip: {
headerFormat: '',
pointFormat: '{point.name}: <b>{series.name}</b>'
}
}
},
series: [{
name: 'GAUCHE',
color: '#FF00FF',
data: ['fr-pac', 'fr-occ'],
})
}, {
name: 'CENTRE',
color: '#FFB233',
data: ['fr-cor', 'fr-bre', 'fr-pdl', 'fr-ges', 'fr-nor', 'fr-lre', 'fr-gf', 'fr-mq'],
})
}, {
name: 'DROITE',
color: '#3366FF',
data: ['fr-naq', 'fr-bfc', 'fr-cvl', 'fr-idf', 'fr-hdf', 'fr-may', 'fr-gua'],
})
}, {
name: 'EXTREME DROITE',
color: '#000000',
data: ['fr-ara'],
}]
}]
});