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 2021/04/28 17:25:33 UTC

[GitHub] [echarts] dthunn opened a new issue #14835: Lines and mark areas disappear during zooming

dthunn opened a new issue #14835:
URL: https://github.com/apache/echarts/issues/14835


   ### Version
   5.1.1
   
   ### Steps to reproduce
   While zooming on line graphs the lines break apart, this is same issue as https://github.com/apache/echarts/issues/3637. I have decided to submit this issue because that one is closed but the issue definitely still exists.
   
   ### What is expected?
   Lines stay connected after zooming.
   
   ### What is actually happening?
   Lines become disconnected while zooming
   
   ---
   This issue has being going on for years it looks like, any help or a fix would be great.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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

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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14835: Lines and mark areas disappear during zooming

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14835:
URL: https://github.com/apache/echarts/issues/14835#issuecomment-828637545


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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

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


[GitHub] [echarts] dthunn commented on issue #14835: Lines and mark areas disappear during zooming

Posted by GitBox <gi...@apache.org>.
dthunn commented on issue #14835:
URL: https://github.com/apache/echarts/issues/14835#issuecomment-828709928


   I have found the issue that causes it on my end, having yAxis type set to 'log' causes the bug, if I remove it, everything is fine. I would definitely like to keep the log scale on the y-axis is anyone has any ideas.  


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

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


[GitHub] [echarts] locinus edited a comment on issue #14835: Lines and mark areas disappear during zooming

Posted by GitBox <gi...@apache.org>.
locinus edited a comment on issue #14835:
URL: https://github.com/apache/echarts/issues/14835#issuecomment-903303711


   I indeed believe this issue still exists: markLines defined by two points disappear when zooming in, as at least one of the points is out of the zoomed window, and even with the filterMode: 'none' option.
   
   A possible workaround could be to hook on the 'datazoom' event and save the zoom state:
   
   const zoomState = {};
   
   ```
   echartsInstance.on('datazoom', (event) => {
     const option = echartsInstance.getOption();
     if(option.dataZoom && Array.isArray(option.dataZoom) && option.dataZoom.length > 0) {
       zoomState.startValue = option.dataZoom[0].startValue;
       zoomState.endValue = option.dataZoom[0].endValue;
     }
   });
   ```
   
   and then proceed to recalculate the chart's options, using the zoomState.startValue and zoomState.endValue as the boundaries of the markLines (I would add +1 to the startValue and -1 to the endValue to make sure we're within the zoomed window). Not ideal, but does the job.


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


[GitHub] [echarts] locinus commented on issue #14835: Lines and mark areas disappear during zooming

Posted by GitBox <gi...@apache.org>.
locinus commented on issue #14835:
URL: https://github.com/apache/echarts/issues/14835#issuecomment-903303711


   I indeed believe this issue still exists: markLines defined by two points disappear when zooming in, as at least one of the points is out of the zoomed window, and even with the filterMode: 'none' option.
   
   A possible workaround could be to hook on the 'datazoom' event and save the zoom state:
   
   const zoomState = {};
   
   echartsInstance.on('datazoom', (event) => {
     const option = echartsInstance.getOption();
     if(option.dataZoom && Array.isArray(option.dataZoom) && option.dataZoom.length > 0) {
       zoomState.startValue = option.dataZoom[0].startValue;
       zoomState.endValue = option.dataZoom[0].endValue;
     }
   });
   
   and then proceed to recalculate the chart's options, using the zoomState.startValue and zoomState.endValue as the boundaries of the markLines (I would add +1 to the startValue and -1 to the endValue to make sure we're within the zoomed window). Not ideal, but does the job.


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


[GitHub] [echarts] locinus edited a comment on issue #14835: Lines and mark areas disappear during zooming

Posted by GitBox <gi...@apache.org>.
locinus edited a comment on issue #14835:
URL: https://github.com/apache/echarts/issues/14835#issuecomment-903303711


   I indeed believe this issue still exists: markLines defined by two points disappear when zooming in, as at least one of the points is out of the zoomed window, and even with the filterMode: 'none' option.
   
   A possible workaround could be to hook on the 'datazoom' event and save the zoom state:
   
   ```
   const zoomState = {};
   
   echartsInstance.on('datazoom', (event) => {
     const option = echartsInstance.getOption();
     if(option.dataZoom && Array.isArray(option.dataZoom) && option.dataZoom.length > 0) {
       zoomState.startValue = option.dataZoom[0].startValue;
       zoomState.endValue = option.dataZoom[0].endValue;
     }
   });
   ```
   
   and then proceed to recalculate the chart's options, using the zoomState.startValue and zoomState.endValue as the boundaries of the markLines (I would add +1 to the startValue and -1 to the endValue to make sure we're within the zoomed window). Not ideal, but does the job.


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