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/02/10 02:11:43 UTC

[GitHub] [echarts] zengyuehao opened a new issue #16484: [Bug] 时间轴maxInterval设置2天间距,刻度宽度分配不均

zengyuehao opened a new issue #16484:
URL: https://github.com/apache/echarts/issues/16484


   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ![企业微信截图_16444589389057](https://user-images.githubusercontent.com/70467633/153323577-b80d72c1-3412-49a0-8ef9-968fa6409e17.png)
   
   
   ### Current Behavior
   
   设置maxInterval:2 * 24 * 60 * 60 * 1000
   
   ### Expected Behavior
   
   设置maxInterval:2 * 24 * 60 * 60 * 1000时 刻度宽度能够均匀分配
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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] lefex commented on issue #16484: [Bug] 时间轴maxInterval设置2天间距,刻度宽度分配不均

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


   You need to provide a demo so that we can solve the problem more quickly。


-- 
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] Ovilia commented on issue #16484: [Bug] 时间轴maxInterval设置2天间距,刻度宽度分配不均

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


   The splitLines of time axes are expected to have varied intervals because time axes have special rules to determine where the label lies. For example, in the demo you provided, most of the intervals are 2 days like 1-27, 1-29 and 1-31. But in order to display 2-1, the interval from 1-31 is one day so its space is smaller.
   We choose to display coarse-grained labels over fine-grained ones so that 2-1 is choosen over 2-2.
   There's not much can be done here. If you insist on having the same gap, maybe you could try with category axes.


-- 
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] echarts-bot[bot] commented on issue #16484: [Bug] 时间轴maxInterval设置2天间距,刻度宽度分配不均

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


   @zengyuehao It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] The time axis maxInterval is set to 2 days interval, and the tick width is unevenly distributed
   
   **BODY**
   
   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ![Enterprise WeChat screenshot_16444589389057](https://user-images.githubusercontent.com/70467633/153323577-b80d72c1-3412-49a0-8ef9-968fa6409e17.png)
   
   
   ### Current Behavior
   
   set maxInterval: 2*24*60*60*1000
   
   ### Expected Behavior
   
   When setting maxInterval: 2 * 24 * 60 * 60 * 1000, the scale width can be evenly distributed
   
   ### Environment
   
   ````markdown
   - OS:
   - Browser:
   - Framework:
   ````
   
   
   ### Any additional comments?
   
   _No response_
   </details>


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