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/02 17:43:33 UTC

[GitHub] [echarts] symlons opened a new issue #14587: How to shift xAxis starting point to the left?

symlons opened a new issue #14587:
URL: https://github.com/apache/echarts/issues/14587


   ### Version
   5.0.2
   
   ### Reproduction link
   [https://echarts.apache.org/examples/en/editor.html?c=line-in-cartesian-coordinate-system](https://echarts.apache.org/examples/en/editor.html?c=line-in-cartesian-coordinate-system)
   
   ### Steps to reproduce
   Open the demo Line Chart in Cartesian coordinate system.
   
   ### What is expected?
   I would like to have the first value to be starting at the origin.
   
   ### What is actually happening?
   In the Demo it starts however at the first x datapoint and therefore leaving space between those values and the Y Axis.
   
   ---
   How might I be able to change this behavior? Thanks in advance!
   
   <!-- 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] symlons closed issue #14587: How to shift xAxis starting point to the left?

Posted by GitBox <gi...@apache.org>.
symlons closed issue #14587:
URL: https://github.com/apache/echarts/issues/14587


   


-- 
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 #14587: How to shift xAxis starting point to the left?

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


   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 **you have posted enough image to demo your request**. 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] symlons commented on issue #14587: How to shift xAxis starting point to the left?

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


   I resolved this issue just by using `min`. But I planned to use it in a dynamic setting, so I had then the issue that the data broke up too early like that:
   
   ![echarts](https://user-images.githubusercontent.com/63979635/113554484-b326ec80-95f9-11eb-8665-ee64b868828f.gif)
   
   But as it turned out this issue wasn't due to setting min dynamically. Shifting the data too early lead to that issue.
   So instead of shifting the data before pushing new data you should do it like that: `data = data.slice(-initial_data-buffer)`.
   This prevents shifting all the data if buffer is chosen as big as new data should be updated. So finally you'll have a much smootehr animation:
   
   ![echarts_2](https://user-images.githubusercontent.com/63979635/113555574-6e9c5080-95fb-11eb-8baa-387ba084ca11.gif)
   
    


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