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/08/01 05:42:04 UTC

[GitHub] wj5576081 opened a new issue #8789: series type:line itemStyle emphasis lineStyle 鼠标经过折线加重效果无效

wj5576081 opened a new issue #8789: series type:line itemStyle emphasis lineStyle 鼠标经过折线加重效果无效
URL: https://github.com/apache/incubator-echarts/issues/8789
 
 
   问题简述 (One-line summary)
   series type:line itemStyle emphasis lineStyle 鼠标经过折线加重效果无效
   版本及环境 (Version & Environment)
   ECharts 版本 (ECharts version): 4.1.0
   浏览器类型和版本 (Browser version): chrome + webkit内核浏览器
   操作系统类型和版本 (OS Version): Windows / Android
   重现步骤 (Steps to reproduce)
   画图指定 itemStyle->itemStyle->emphasis->lineStyle
   期望结果 (Expected behaviour)
   4.1.0版本鼠标经过折线能有放大效果
   
   ECharts配置项 (ECharts option)
   {
               tooltip : {
                 trigger: 'axis'
               },
               legend: {
                 data:[
                   {
                     name: 'a',
                     icon : 'line'
                   },
                   {
                     name: 'b',
                     icon : 'line'
                   }
                 ],
                 y: 'bottom',
                 itemGap: 30,
               },
               calculable : true,
               xAxis :
                 {
                   type : 'time',
                   min: currentData - 365*2*oneDayTimestamp,
                   max: currentData + oneDayTimestamp,
                   name: 'x/月份',
                   interval: 3600000*24*30,
                   boundaryGap : false,
                   nameTextStyle: {
                     color: '#999',
                     fontSize: 16
                   },
                  axisLabel: {
                     formatter: function(val) {
                       return moment(val).format('MM') - 0 + '月';
                     }
                  },
                   axisLine: {
                     lineStyle: {
                       width: 1,
                       color: '#999',
                       type: 'solid'
                     }
                   },
                   axisTick: {
                     length:5
                   },
                   splitLine: {
                     show: false
                   }
                 },
               yAxis : [
                 {
                   type : 'value',
                   name: 'y/数',
                   nameTextStyle: {
                     color: '#999',
                     fontSize: 16
                   },
                   axisLine: {
                     lineStyle: {
                       color: '#333',
                       width: 0,
                       type: 'solid'
                     }
                   },
                   splitLine: {
                     lineStyle: {
                       type: 'dotted'
                     }
                   }
                 }
               ],
               series : [
                 {
                   name:'a',
                   type:'line',
                   symbolSize: [4, 4],
                   symbol: 'circle',
                    itemStyle: {
                     normal: {
   
                     },
                     //鼠标悬停时:
                     emphasis: {
                       shadowBlur: 15,
                       shadowOffsetX: 0,
                       shadowOffsetY: 0,
                       shadowColor: 'rgba(0, 0, 0, 0.8)',
                       lineStyle: {
                         width: 4
                       }
                     }
                   },
                   data:[['2018/08/01 8:38:08', 25],['2018/08/01 18:18:18', 30],['2018/08/01 21:18:18', 70]]
                 },
                 {
                   name:'b',
                   type:'line',
                   symbolSize: [4, 4],
                   symbol: 'circle',
                   itemStyle: {
                     normal: {
   
                     },
                     //鼠标悬停时:
                     emphasis: {
                       shadowBlur: 15,
                       shadowOffsetX: 0,
                       shadowOffsetY: 0,
                       shadowColor: 'rgba(0, 0, 0, 0.8)',
                       lineStyle: {
                         width: 4
                       }
                     }
                   },
                   data:[ {name:'2018/08/01 8:38:08', value:['2018/08/01 8:38:08', 50]}, {name:'2018/08/01 16:18:18', value:['2018/08/01 16:18:18', 60]}, {name:'2018/08/01 19:18:18', value:['2018/08/01 19:18:18', 70]}]
                 },
               ]
             },

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