wangzhongITger commented on issue #10116: 
移动端我的y轴数据值有null值,然后在开启tooltip提示框的情况下点击在null的时候图表会闪烁,有时就没了再点又有了,有知道该怎么解决的么?
URL: 
https://github.com/apache/incubator-echarts/issues/10116#issuecomment-473791256
 
 
   > 请提供可复现的配置项代码
   const chartOption = {
       tooltip: {
         trigger: "axis",
         axisPointer: {
           type: "cross"
         },
         textStyle: {
           color: "#000"
         },
         backgroundColor: "rgba(245, 245, 245, 0.8)",
         borderWidth: 1,
         padding: 10,
         borderColor: "#ccc",
       },
       grid: {
         top: 30,
         bottom: 70,
         left: 60,
         right: 50
       },
       xAxis: {
         type: "time",
         boundaryGap: false,
         splitLine: {
           show: false
         },
         nameTextStyle: {
           color: "#ffff00"
         },
       },
       yAxis: {
         nameLocation: 'end',
         type: "value",
         axisLine: {
           show: false
         },
         splitLine: {
           show: false,
           lineStyle: {
             type: "dotted",
             color: "#e6e6e6",
             width: 1
           }
         }
       },
       dataZoom: [
         {
           type: "slider",
           show: true,
           xAxisIndex: [0],
           start: 1,
           end: 100
         }
       ],
       series: {
         name: "测试值",
         type: "line",
         smooth: true,
         data: null,
         symbol: "none",
       }
     };
   
   series中data值事例如下:
   
[[1,100],[2,200],[3,100],[4,150],[5,""],[6,null],[7,undefined],[8,100],[9,null]]
   
我尝试过null,undefined以及“”,图上显示是线是断开的,这是没问题,但是点击的时候就会消失,空值越多,现象越是明显,如果禁用点击事件的话是没有任何问题的,正常显示,包括图表中数据连续无空值出现时,点击也不会出任何问题,但是一点有空值出现,就会出现点击图表消失闪现这样的情况,我实在微信小程序上引用的echarts

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