kathy-wazowski opened a new issue #10345: 漏斗图不支持更改高亮样式
URL: https://github.com/apache/incubator-echarts/issues/10345
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   设置 itemStyle  normal 和 emphasis 同一个 color 值
   
   ### What is expected?
   不想要默认的高亮样式,想 hover 上去时颜色不变
   
   ### What is actually happening?
    设置了 normal 和 emphasis 同一个 color 值,hover 上去还是变色了。 新、旧写法都不行
   
   ---
   全部 option 如下,效果在第一个 data 上。
   
   option = {
       title: {
           text: '漏斗图',
           subtext: '纯属虚构'
       },
       tooltip: {
           trigger: 'item',
           formatter: "{a} <br/>{b} : {c}%"
       },
       toolbox: {
           feature: {
               dataView: {readOnly: false},
               restore: {},
               saveAsImage: {}
           }
       },
       legend: {
           data: ['展现','点击','访问','咨询','订单']
       },
       series: [
           {
               name:'漏斗图',
               type:'funnel',
               left: '10%',
               top: 60,
               //x2: 80,
               bottom: 60,
               width: '80%',
               // height: {totalHeight} - y - y2,
               min: 0,
               max: 100,
               minSize: '0%',
               maxSize: '100%',
               sort: 'none',
               gap: 2,
               label: {
                   show: true,
                   position: 'inside'
               },
               labelLine: {
                   length: 10,
                   lineStyle: {
                       width: 1,
                       type: 'solid'
                   }
               },
               itemStyle: {
                   borderColor: '#fff',
                   borderWidth: 1
               },
               emphasis: {
                   label: {
                       fontSize: 20
                   }
               },
               data: [
                   {value: [100, 0.4], name: '展现'},
                    {value: [80, 0.3], name: '点击'},
                     {value: [60, 0.3], name: '访问'},
                   {value: [40, 0.22], name: '咨询'},
                   {value: [20, 0.21], name: '订单'},
                    {value: [20, 0.21], name: '订单',  "itemStyle": {
               "normal": {
                 "height": "auto"
               }
             },},
                  
               ]
           }
       ]
   };
   
   <!-- 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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to