You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/12 02:10:37 UTC

[GitHub] codeFactory2018 opened a new issue #9209: 使用dispatchAction mapUnSelect传 seriesIndex 或 seriesName 无法取消选定区域

codeFactory2018 opened a new issue #9209: 使用dispatchAction  mapUnSelect传 seriesIndex 或 seriesName 无法取消选定区域
URL: https://github.com/apache/incubator-echarts/issues/9209
 
 
   ### One-line summary [问题简述]
   使用该action取消地图的选定区域
   
      dispatchAction({
       type: 'mapUnSelect',
       // 可选,系列 index,可以是一个数组指定多个系列
       seriesIndex?: number|Array,
       // 可选,系列名称,可以是一个数组指定多个系列
       seriesName?: string|Array,
       // 数据的 index,如果不指定也可以通过 name 属性根据名称指定数据
       dataIndex?: number,
       // 可选,数据名称,在有 dataIndex 的时候忽略
       name?: string
   })
   
   
   我的需求是
   **点击地图某个区域时先取消 选中的 区域, 然后再选中当前点击的区域**
   取消选中我用的是
   `
       myChart.dispatchAction({
         type: 'mapUnSelect',
         seriesName: '东莞市',
       });
   `
   然后选中当前点击区域
   `
       myChart.dispatchAction({
           type: 'mapSelect',
           dataIndex: params.dataIndex,
       });
   `
   
   现在mapUnSelect 的seriesIndex 或 seriesName 没有成功取消选中区域,  但是用name 或者dataIndex 取消就可以.
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.2.0
   
   
   ### Expected behaviour [期望结果]
   希望可以用seriesIndex 或 seriesName 来取消选中区域
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org