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

map地图省份标色 #301

Closed
liu7923032 opened this issue Apr 23, 2014 · 3 comments
Closed

map地图省份标色 #301

liu7923032 opened this issue Apr 23, 2014 · 3 comments

Comments

@liu7923032
Copy link

能不能在map上用颜色区分各个省份(将多个省份划成一个区域,不同的区域用不同的颜色标识)

@kener
Copy link
Contributor

kener commented Apr 23, 2014

http://echarts.baidu.com/doc/example/map.html

    itemStyle: {
            normal: {
                borderWidth:2,
                borderColor:'lightgreen',
                color: 'orange',
                label: {
                    show: false
                }
            },
            emphasis: {                 // 也是选中样式
                borderWidth:2,
                borderColor:'#fff',
                color: '#32cd32',
                label: {
                    show: true,
                    textStyle: {
                        color: '#fff'
                    }
                }
            }
        },

@kener kener added the map label Apr 24, 2014
@kikaendeavor
Copy link

可以利用dataRange巧妙解决。
给dataRange设置颜色种类和阈值,划分出阈值区域,然后给全国map的data设置省份及阈值即可。
最后把dataRange藏起来,哈哈~~~

@kener
Copy link
Contributor

kener commented Jun 21, 2014

恩,这也可以

@kener kener closed this as completed Jun 21, 2014
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

3 participants