Categorized areas
(async () => { const topology = await fetch( 'https://code.highcharts.com/mapdata/custom/europe.topo.json' ).then(response => response.json()); // Instantiate the map Highcharts.mapChart('container', { chart: { map: topology, spacingBottom: 20 }, title: { text: 'Europe time zones' }, accessibility: { series: { descriptionFormat: 'Timezone {series.name} with ' + '{series.points.length} countries.' }, point: { valueDescriptionFormat: '{point.name}.' } }, 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: '{#if (lt point.properties.labelrank 5)}' + '{point.properties.iso-a2}' + '{/if}' }, tooltip: { headerFormat: '', pointFormat: '{point.name}: <b>{series.name}</b>' } } }, series: [{ name: 'UTC', data: ['IE', 'IS', 'GB', 'PT'].map(code => ({ code })) }, { name: 'UTC + 1', data: [ 'NO', 'SE', 'DK', 'DE', 'NL', 'BE', 'LU', 'ES', 'FR', 'PL', 'CZ', 'AT', 'CH', 'LI', 'SK', 'HU', 'SI', 'IT', 'SM', 'HR', 'BA', 'YF', 'ME', 'AL', 'MK' ].map(code => ({ code })) }, { name: 'UTC + 2', data: [ 'FI', 'EE', 'LV', 'LT', 'BY', 'UA', 'MD', 'RO', 'BG', 'GR', 'TR', 'CY' ].map(code => ({ code })) }, { name: 'UTC + 3', data: [{ code: 'RU' }] }] }); })();
MapsGeneral
Install with NPM
The official Highcharts NPM package comes with support for CommonJS and contains Highcharts, and its Stock, Maps and Gantt packages.
npm install highcharts --save
See more installation optionsDownload our library
The zip archive contains Javascript files and examples. Unzip the zip package and open index.html in your browser to see the examples.
DownloadBuy a license
You can download and try out all Highcharts products for free. Once your project/product is ready for launch, purchase a commercial license.
See License Pricing