drorhilman opened a new issue #9593: How can I fix the position of elements 
when datazoom ?
URL: https://github.com/apache/incubator-echarts/issues/9593
 
 
   I have some elements on the scatter plot which I would like to be fixed in 
the same visual position when the data zoom active. 
   How can I translate a fixed position on the x==0 when data-zooming ?
   or in other words: how can I know where is the new relative position of the 
data-point when zooming ?
   
   currently, I try to do it like that, but it doesn't work...
   
   ```
   INIT_PIXELS = chart.convertToPixel({'seriesIndex': 0}, (0,0))
   
   function zoomEvent(params){
       new_pox_x = chart.convertFromPixel({'seriesIndex': 0}, INIT_PIXELS)[0]
      // then I update the series ... to contain this new_pos_x
      // but it does not work right.
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to