Geylnu commented on issue #11376: URL: https://github.com/apache/echarts/issues/11376#issuecomment-2565324682
> > 同样遇到了,请问有什么好的解决办法吗? @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: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org