Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

china-map-echarts

lijiancong55ISC1.0.5

This package provides a collection of JSON data files containing administrative region codes and corresponding geographical data formatted for use with ECharts maps. It includes data for provinces, cities, and counties across China.

readme

China Map for ECharts

This package provides a collection of JSON data files containing administrative region codes and corresponding geographical data formatted for use with ECharts maps. It includes data for provinces, cities, and counties across China.

Installation

To install the package, run the following command in your project directory:

const mapData = require('china-map-echarts');

ES Modules

If you are using ES modules, you can import the data like this:

import mapData from 'china-map-echarts';