Socket
Socket
Sign inDemoInstall

@highcharts/map-collection

Package Overview
Dependencies
0
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @highcharts/map-collection

Highmaps Map Collection


Version published
Weekly downloads
52K
decreased by-17.45%
Maintainers
3
Install size
109 MB
Created
Weekly downloads
 

Readme

Source

Highcharts Map Collection

Website | API | Demo | Issues

License

The use of the maps in this collection requires that you follow our terms and conditions that are stated in License.md.

Installation

Install from our CDN

All our maps can be loaded from code.highcharts.com/mapdata. The following example loads the map custom/world.topo.json:

const topology = await fetch(
    'https://code.highcharts.com/mapdata/custom/world.topo.json'
).then(response => response.json());

After the map is loaded in the browser then you can use it in Highcharts Maps as following:

Highcharts.mapChart('container', {
  chart: {
    map: topology
  },
  // ...
});

Install from npm

npm i @highcharts/map-collection

To load a map in Node.js and use it in Highcharts Maps you can do the following:

var Highcharts = require('highcharts/highmaps.js'),
    map = require('@highcharts/map-collection/custom/world.topo.json');

Highcharts.mapChart('container', {
  chart: {
    map: topojson
  },
  // ...
});

Keywords

FAQs

Last updated on 05 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc