You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/12/16 13:01:54 UTC

[GitHub] drorhilman opened a new issue #9593: How can I fix the position of elements when datazoom ?

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org