You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/09 11:36:11 UTC

[GitHub] [echarts] wigsnes commented on issue #17191: [Bug] onDrag, not in sync with data on line plot.

wigsnes commented on issue #17191:
URL: https://github.com/apache/echarts/issues/17191#issuecomment-1151011681

   It still is not working, I only want to move the points in one direction, so modifying your demo to only allow this, it still has the problem of dragging out of the point axis.
   
   I changed the "onPointDragging" function:
   
   ```
   function onPointDragging(dataIndex, pos) {
     const val = myChart.convertFromPixel('grid', pos);
     data[dataIndex] = [data[dataIndex][0], val[1]];
     ...
   ```
   This makes it not possible to drag in y-axis, and my problem is still present.
   
   https://user-images.githubusercontent.com/10787984/172837554-244f3040-d693-463f-b618-766541097831.mp4
   
   
   


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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