Highcharts.chart('container', {
chart: {
type: 'variablepie'
},
title: {
text: 'Countries compared by population density and total area, 2022.',
align: 'left'
},
tooltip: {
headerFormat: '',
pointFormat: '<span style="color:{point.color}">\u25CF</span> <b> {point.name}</b><br/>' +
'Area (square km): <b>{point.y}</b><br/>' +
'Population density (people per square km): <b>{point.z}</b><br/>'
},
series: [{
minPointSize: 10,
innerSize: '20%',
zMin: 0,
name: 'countries',
data: [{
name: 'Spain',
y: 505992,
z: 92
}, {
name: 'France',
y: 551695,
z: 119
}, {
name: 'Poland',
y: 312679,
z: 121
}, {
name: 'Czech Republic',
y: 78865,
z: 136
}, {
name: 'Italy',
y: 301336,
z: 200
}, {
name: 'Switzerland',
y: 41284,
z: 213
}, {
name: 'Germany',
y: 357114,
z: 235
}]
}]
});