kim1124 opened a new issue, #18570:
URL: https://github.com/apache/echarts/issues/18570

   ### What problem does this feature solve?
   
   Drag onto the Series area of the chart to select a range to request the 
ability to obtain a value that corresponds to the range. ECharts does not offer 
these features, and although you can make them similar with dataZoom, there is 
always a problem of zooming.
   
   Toolbox allows you to use similar functions, but you must always click the 
button to activate the drag.
   
   
![dragrange](https://user-images.githubusercontent.com/23370390/234538693-32142829-6642-4be8-9074-7ab4c444b3dc.png)
   
   ### What does the proposed API look like?
   
   chartInstance.on('selection', (event) => {
     // Example of dragging Series to get the value of the X-axis
     if (event.xAxis[0]) {
       const xAxisInfo = event.xAxis[0]
       const startValue = xAxisInfo.start
       const endValue = xAxisInfo.end
       ...
     }
     
     // If the return value is false, only the drag event is called and the 
operation is terminated
     return false
   })


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