Amelia-rgb18 commented on issue #20902: URL: https://github.com/apache/echarts/issues/20902#issuecomment-2788131616
> It seems like if the datapoint coupled to the showTip action is not inside the current window, the tooltip is not displayed. Although the documentation states that seriesIndex "is optional when trigger of tooltip is axis", I was not able to get the showTip action to work without a seriesIndex. > > Another possible workaround is to add an invisible series to define the showTip action on: [Example](https://echarts.apache.org/examples/en/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeBYAULWkwBsCmAXMuppmHgB5hEDkAymAIYDGA1ngCawAyE0eNErAC-AGiFhgwHJBBFUGUmABOEAOZq8y2owoQAzoMVih-TdA7yhmDoyZEA2jQCiAW0YQcNUbBoBVaCg4AEEOQx8aADUIDjxgWFDw3wARCGU8ZjBvXzo8RmVmAAtYZ2g1PgEAXSETRTVVS2JFTHwAM2pfAGYAUm9rWFU1Qo6aABZe8WbYACNgMElXWh6-qeYYJj5uRmm8HCIVAFc8GsmhCmC9fSspsABPEEJfZjs8NWBlW5XSGeADi3zbgBxRhyWCtRg4fR4SbfWz2WBOACyMGyNAAKkdUQB1TiotGFA6ogBiqlRdDsZL-NGqxhhsFuFwM8lqmChqjwVwR_QU3zI90eNGYB30Cy-vLhjEcAAZRDK5bKFVLKnTvpJpLJ5LB9IVgAB3IjgyF4EQq0j6Tx4aAdQ7Q_os0g83nQRiuAVuDxeU18h60HAVMXfbV6ui3VyzPZgiFQ05TGx2SUIgCMiYATDLYInOp0Uz5E6MpYmfCnOqNRj4AJzp0uddMplOJpV202O77O120AJBBJhANKfm-_0x3lanW6kNh6QGqO22OwCWOOvpxMADhzGfLhdgxbLW8rPiz6c6DZp33tmBbpDbAuisXiiV73oFfv4K36rNH4_DU6NXrn8cciYAKy1tmRYFrmgE7ome6wAePijMeTbcm-sBXrQqTpJkD5YP2vjPgIQ68kGY6hl-kY_ih84Itmh6gbB4GwSW-4wXBsFpiepBnk0w5oTkeQFMUpTlC-v53D6eGDugKHEZ-k7 kdGlH_giq7puWdGVpualQSmMGZjWuY0RxmD2jSwgANzoBAEDwFKFloFCYAAJJWloABuEIABStH8mRdh5ACU3GwFZCCwAA1GFIXdLAADsQiuLcADChT5GAAB0HAGCAdhFMEvkwB5F5iQKxFohAIC9myEAcs5sQUEQMr9BKtWUEQVmmiAwDmpAMBEB5nV8GAPjZcoLo-BwwCuD4mFDVqEAAF54IF8AAHxBd8-BgLAFChQNVoOEqdnDhArSwP1-QugdlQZfGLU7WtnSBRe3w7YgO0ALRzYtaVrC5Vp0AteBXUdvLCChKHpGABzKHADgUBEwG9JUIPGTU_l2WIGZStj6NAA) Hello, first of all, thank you again for your answer. It successfully helped me solve the problem. However, I tried to use it in my own project and encountered an error `Error: series.render is required.` When I tried to change it to ``` { type: 'custom', data: [0,0,0,0,0,0,0], tooltip: { show: false }, renderItem: () => {} } ``` the project can run successfully 🎉🎉🎉 -- 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]
