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 2019/12/20 02:58:23 UTC

[GitHub] [incubator-echarts] brohan1705 opened a new issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应

brohan1705 opened a new issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应
URL: https://github.com/apache/incubator-echarts/issues/11883
 
 
   ### Version
   4.5.0
   
   ### Steps to reproduce
   在echarts的example网站,输入如下options  
   ```  
   option = {
       tooltip: {
           trigger: 'item',
           formatter: "{a} <br/>{b}: {c} ({d}%)"
       },
       legend: {
           orient: 'vertical',
           x: 'left',
           data:['直接访问','邮件营销'],
           selectedMode: false
       },
       series: [
           {
               name:'访问来源',
               type:'pie',
               radius: ['50%', '70%'],
               avoidLabelOverlap: false,
               legendHoverLink: true,
               label: {
                   normal: {
                       show: false,
                       position: 'center'
                   },
                   emphasis: {
                       show: true,
                       textStyle: {
                           fontSize: '30',
                           fontWeight: 'bold'
                       }
                   }
               },
               labelLine: {
                   normal: {
                       show: false
                   }
               },
               data:[
                   {value:335, name:'直接访问'},
                   {value:310, name:'邮件营销'}
               ]
           }
       ]
   };  
   ```  
   配置项已设置legendHoverLink为true,但生成的图表,鼠标悬停无效高亮。判断是由于legend.selectedMode为false导致,但文档中并未描述这两个属性有什么关系。
   
   ### What is expected?
   点击图例无法切换图例显示/取消状态,但鼠标悬停可以高亮对应图例
   
   ### What is actually happening?
   点击图例无法切换图例显示/取消状态,鼠标悬停无法高亮对应图例
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

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


With regards,
Apache Git Services

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


[GitHub] [echarts] qpxtWhite commented on issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应

Posted by GitBox <gi...@apache.org>.
qpxtWhite commented on issue #11883:
URL: https://github.com/apache/echarts/issues/11883#issuecomment-810715691


   Yes, and tooltip in legend not work when selectedMode = false


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


[GitHub] [incubator-echarts] brohan1705 commented on issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应

Posted by GitBox <gi...@apache.org>.
brohan1705 commented on issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应
URL: https://github.com/apache/incubator-echarts/issues/11883#issuecomment-569629376
 
 
   > Thanks your case!
   > 
   > Should we support something like:
   > 
   > ```js
   > option = {
   >     legend: {
   >         selectedMode: 'onlyHover'
   >     }
   > }
   > ```
   
   Yes, I think this is a nice solution

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 100pah commented on issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应
URL: https://github.com/apache/incubator-echarts/issues/11883#issuecomment-568783650
 
 
   Thanks your case!
   
   Should we support something like: 
   
   ```js
   option = {
       legend: {
           selectedMode: 'onlyHover'
       }
   }
   
   ```

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


With regards,
Apache Git Services

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


[GitHub] [echarts] qpxtWhite edited a comment on issue #11883: legend.selectedMode设为false,series[i]-pie.legendHoverLink设为true时,图例hover无反应

Posted by GitBox <gi...@apache.org>.
qpxtWhite edited a comment on issue #11883:
URL: https://github.com/apache/echarts/issues/11883#issuecomment-810715691


   Yes, and tooltip in legend not work when selectedMode = false
   https://jsfiddle.net/vj07wosb/


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