You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/04/14 13:25:15 UTC
[GitHub] [echarts] stormGui commented on issue #14678: map画世界地图,effectScatter不显示的问题
stormGui commented on issue #14678:
URL: https://github.com/apache/echarts/issues/14678#issuecomment-819515890
我画了个世界地图,但是添加effectScatter的时候就是不出来,数据我用的是
https://img.hcharts.cn/mapdata/
https://img.hcharts.cn/mapdata/custom/world-highres.geo.json

我改了下官方的示例,和我写的基本一样
https://echarts.apache.org/examples/zh/editor.html?c=map-usa
`$.get( 'https://img.hcharts.cn/mapdata/custom/world-highres.geo.json', function (usaJson) {
myChart.hideLoading();
option = {
series: [
{
name: 'USA PopEstimates',
type: 'map',
map: 'USA',
emphasis: {
label: {
show: false
},
itemStyle:{
areaColor:"#ecebeb"
}
},
selectedMode: false,
data:[]
},
{
type: "effectScatter",
coordinateSystem: "geo",
data: [
{
name: "China",
value: [104.195397, 35.86166],
},
],
rippleEffect: {
brushType: "stroke",
},
itemStyle: {
shadowBlur: 10,
shadowColor: "#333",
},
},
]
};
myChart.setOption(option);
});`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org