Skip to content
New issue

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

省地图不能使用effectScatter效果 #3999

Closed
hnxwl opened this issue Sep 2, 2016 · 1 comment
Closed

省地图不能使用effectScatter效果 #3999

hnxwl opened this issue Sep 2, 2016 · 1 comment

Comments

@hnxwl
Copy link

hnxwl commented Sep 2, 2016

问题简述 (One-line summary)

我调用省地图是这样调用的
在series 里增加type: 'map', map: '海南' 两个值
而effectScatter中的coordinateSystem只有geo 这种,是不是series 里的 type:map 不能使用effectScatter,而geo类型的地图才能使用effectScatter呢?但是我geo 没能调用海南省地图,只能调用china 地图,请麻烦解答一下好吗?

{
name: 'Top 5',
type: 'effectScatter',
coordinateSystem: 'geo',
data: [
{
name:'海口市',
value:[110.35,20.02,279]
}
],
symbolSize: function (val) {
return val[2] / 10;
},
showEffectOn: 'render',
rippleEffect: {
brushType: 'stroke'
},
hoverAnimation: true,
label: {
normal: {
formatter: '{b}',
position: 'right',
show: true
}
},
itemStyle: {
normal: {
color: '#f4e925',
shadowBlur: 10,
shadowColor: '#333'
}
},
zlevel: 1
}

我设置 effectScatter的data 为这个,没有任何用啊,我看事例是根据坐标输出effectScatter 效果,以下的data设置在geo china地图上面是有显示的,而在series里type:map 这种图标不能显示
data: [
{
name:'海口市',
value:[110.35,20.02,279]
}
],

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):
  • 浏览器类型和版本 (Browser version):
  • 操作系统类型和版本 (OS Version):

重现步骤 (Steps to reproduce)

期望结果 (Expected behaviour)

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {
        series: [ {
                    type: 'map',
                     map: '海南',
                    label: {
        normal:{
                show: true,
                textStyle:{
            color:'#1b1b1b'
        }
            },
            emphasis: {
                show: false
            }
        },
                     data:[

     {name: '海口', value: 279}
],
                    center:[109.7,19.3],
                    zoom:8,
                    itemStyle: {

         normal:{areaColor:'#ffffff',
         borderColor:'rgba(100,149,237,1)',
                    borderWidth:0.5},


                    label:{show:true}
        }

                },
 {
            name: 'Top 5',
            type: 'effectScatter',
            coordinateSystem: 'geo',
            data: [
                {
                    name:'海口市',
                    value:[110.35,20.02,279]
                }
                ],
            symbolSize: function (val) {
                return val[2] / 10;
            },
            showEffectOn: 'render',
            rippleEffect: {
                brushType: 'stroke'
            },
            hoverAnimation: true,
            label: {
                normal: {
                    formatter: '{b}',
                    position: 'right',
                    show: true
                }
            },
            itemStyle: {
                normal: {
                    color: '#f4e925',
                    shadowBlur: 10,
                    shadowColor: '#333'
                }
            },
            zlevel: 1
        }
]
}

其他信息 (Other comments)

@pissang
Copy link
Contributor

pissang commented Sep 5, 2016

可以的

@pissang pissang closed this as completed Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants