Roman-Maksimov commented on issue #11865:
URL: https://github.com/apache/echarts/issues/11865#issuecomment-2747789903

   Since ECharts v5 you can listen to `updateAxisPointer` event
   
   ```typescript
   import axisTrigger from 
"echarts/types/src/component/axisPointer/axisTrigger";
   
   chartInstance.on('updateAxisPointer', (payload: Parameters<typeof 
axisTrigger>[0]) => {
       console.log(payload);
       
       /*
       {
           "seriesIndex": 0,
           "dataIndexInside": 72,
           "dataIndex": 1209,
           "axesInfo": [
               {
                   "axisDim": "x",
                   "axisIndex": 0,
                   "value": 137.42172913426677
               },
               {
                   "axisDim": "x",
                   "axisIndex": 1,
                   "value": 146.09417566631794
               }
           ],
           "type": "updateaxispointer"
       }
       */
   });
   ```


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