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 2020/09/08 19:59:33 UTC

[GitHub] [incubator-echarts] KrzysztofMadejski edited a comment on issue #8866: 请问如何让visual map和地图配合的时候,动态的让visual map的hover颜色也根据数据映射到某个数据区间

KrzysztofMadejski edited a comment on issue #8866:
URL: https://github.com/apache/incubator-echarts/issues/8866#issuecomment-689103562


   1. `areaColor: null` behavior should be documented. 
     It works if placed under `series.emphasis`
   
               series: [
               {
                   name: '香港18区人口密度',
                   mapType: 'HK', // 自定义扩展图表类型
                   emphasis: {
                       itemStyle: {
                         shadowColor: 'black',
                         shadowBlur: 5,
                         areaColor: null
                       }
                   },
   2. Does not work if placed under https://echarts.apache.org/en/option.html#geo.emphasis.itemStyle.areaColor
       Shadow can be seen, but areaColor is `yellow` still
   
           geo: {
               emphasis: {
                   itemStyle: {
                     shadowColor: 'black',
                     shadowBlur: 5,
                     areaColor: null
                   }
               }, 
               map: 'HK',
               nameMap: { .... }
            },
            series: [
               {
                   name: '香港18区人口密度',
   
   3. I'd expect full transparency to work using below code. Also with non-zero opacity to get a shading of the color below.
   
               series: [
               {
                   name: '香港18区人口密度',
                   emphasis: {
                       itemStyle: {
                         shadowColor: 'black',
                         shadowBlur: 5,
                         areaColor: '#ffffff00'
                       }
                   },
   
   I was using https://echarts.apache.org/examples/en/editor.html?c=map-HK as an example


----------------------------------------------------------------
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