krmao commented on issue #11376:
URL: https://github.com/apache/echarts/issues/11376#issuecomment-1780490705

   > 同样遇到了,请问有什么好的解决办法吗? @Ovilia @krislee94 @YuanDaoDao001 @huogui 目前用的是 wuba 
rn + echarts
   
   ### 自己解决了
   > 使用 xAxis 的 axisPointer 代替 tooltip 的 axisPointer
   ```
         xAxis: [
           {
             ...{},
             data: xValues,
             triggerEvent: false,
             axisPointer: {
               animation: false,
               show: true,
               type: 'line',
               snap: true,
               z: 0,
               label: {
                 show: false,
                 formatter: (params: any) => {
                   const { value, seriesData } = params;
                   // ...
                   return null;
                 },
               },
               lineStyle: {
                 type: 'solid',
                 width: 12,
                 color: 'rgba(234, 237, 240, 0.8)',
                 opacity: 1,
               },
               triggerTooltip: true,
               value: peekXValue,
               status: 'show',
               handle: {
                 show: true,
                 size: 0,
                 margin: 0,
                 color: 'transparent',
               },
             },
           },
         ],
   ```
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to