🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

echarts-countries-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

echarts-countries-js

Packages all countries for front end developers

1.0.5
latest
Version published
Weekly downloads
753
-0.26%
Maintainers
1
Weekly downloads
 
Created

echarts-countries-js

npm version

It collects all geo-jsons in javascript of 213 countries and regions and acts as a static asset to jupyter-echarts or your Apache ECharts (incubating) collection.

Installation

npm i echarts-countries-js

This library will be included in pyecharts. No action is required from pyecharts user.

echarts usage

<html>
  <head>
    <meta charset="utf-8" />
	<style>
	  .citymap{
	  width: 100%;
	  height: 100%;
	  }
	</style>
  	<script src="https://echarts-maps.github.io/echarts-countries-js/echarts.min.js"></script>
	<script src="https://echarts-maps.github.io/echarts-countries-js/echarts-countries-js/Switzerland.js"></script>
  </head>
  <body>
	<div id='map' class='citymap'></div>
	<script src='demo.js'></script>
	<script>
	  make_map('瑞士', 'map');
	</script>
  </body>
</html>

Usage with echarts

Featuring Cities(or for Single Download)

Cities:

Development

$ npm install
$ gulp switzerland # as this is special fix
$ gulp

Credit and geojson source

pissang and his starbucks project.

Switzerland map comes from natural earth data

License

ODC Open Database License (ODbL)

Note

This projects is NOT associated with official Apache ECharts (incubating) project and is independently maintained by @chfw.

Keywords

FAQs

Package last updated on 13 Feb 2022

Did you know?

Socket

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