We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe one needs to register an geodata json with registerMap method to create a map chart.
here is an javascript example
var myChart = echarts.init(chartDom); var option; $.get('https://echarts.apache.org/examples/data/asset/geo/USA.json', function (usaJson) { myChart.hideLoading(); echarts.registerMap('USA', usaJson, { Alaska: { left: -131, top: 25, width: 15 }, Hawaii: { left: -110, top: 28, width: 5 }, 'Puerto Rico': { left: -76, top: 26, width: 2 } }); option = { // options }; myChart.setOption(option);
The text was updated successfully, but these errors were encountered:
Hi @jinfar 👋 Please try import registerMap from echarts package to register the map you need like this:
import { registerMap } from 'echarts' echarts.registerMap({...})
Sorry, something went wrong.
No branches or pull requests
Describe The Problem To Be Solved
I believe one needs to register an geodata json with registerMap method to create a map chart.
here is an javascript example
The text was updated successfully, but these errors were encountered: