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/07/28 09:26:00 UTC

[GitHub] [echarts] leavest opened a new issue #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

leavest opened a new issue #15426:
URL: https://github.com/apache/echarts/issues/15426


   ### Version
   5.1.2
   
   ### Steps to reproduce
   1. 打开  https://echarts.apache.org/examples/zh/editor.html?c=line-simple
   2. 使用以下配置运行
   
    option = {
       xAxis: {
           type: 'time',
          
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [[1627461660000, 3],
           [1627461675000, 3.1],
           [1627461690000, 3.5667],
           [1627461705000, 3.2667],
           [1627461720000, 3.2722],
           [1627461735000, 3.2333],
           [1627461750000, 2.9667],
           [1627461765000, 3.1333],
           [1627461780000, 3.15],
           [1627461795000, 3.0333],
           [1627461810000, 3.15],
           [1627461825000, 3.0333],
           [1627461840000, 3.0333]],
           type: 'line'
       }]
   };
   
   ### What is expected?
   正确显示时间坐标轴
   
   ### What is actually happening?
   时间坐标轴显示
   
   16:41    04:41:20 020   04:41:40 040  16:42
   
   <!-- 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.

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 closed issue #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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


   


-- 
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] leavest commented on issue #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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


   ![image](https://user-images.githubusercontent.com/30454841/127972962-2e34cf46-0771-4e75-873a-147d0cd42a9c.png)
   It doesn't completely solve the bug.
   see milliseconds. It shoud be 000 but 020 and 040 .
   
   in source,
   https://github.com/apache/echarts/blob/956347d909279c5e6b4a38ffc30b0fe3384690c6/src/util/time.ts#L320
   ```
   export function millisecondsGetterName(isUTC: boolean) {
       return isUTC ? 'getUTCSeconds' : 'getSeconds';
   }
   ```
   use seconds as milliseconds. it's a bug or a feature?
   


-- 
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 #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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






-- 
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 #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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


   This issue is labeled with `difficulty: easy`.
   @leavest Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.
   
   Please have a look at [How to debug ECharts](https://github.com/apache/echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. 🤓


-- 
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] leavest edited a comment on issue #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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


   ![image](https://user-images.githubusercontent.com/30454841/127972962-2e34cf46-0771-4e75-873a-147d0cd42a9c.png)
   It doesn't completely solve the bug.
   see milliseconds. It shoud be 000 but 020 and 040 .
   
   in source,
   https://github.com/apache/echarts/blob/956347d909279c5e6b4a38ffc30b0fe3384690c6/src/util/time.ts#L320-L322
   
   use seconds as milliseconds. it's a bug or a feature?
   


-- 
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 closed issue #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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


   


-- 
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] leavest edited a comment on issue #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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


   ![image](https://user-images.githubusercontent.com/30454841/127972962-2e34cf46-0771-4e75-873a-147d0cd42a9c.png)
   It doesn't completely solve the bug.
   see milliseconds. It shoud be 000 but 020 and 040 .
   please reopen this issue.
   
   in source,
   https://github.com/apache/echarts/blob/956347d909279c5e6b4a38ffc30b0fe3384690c6/src/util/time.ts#L320-L322
   
   use seconds as milliseconds. it's a bug or a feature?
   


-- 
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] leavest commented on issue #15426: 当时间跨度比较小的时候,时间坐标轴显示有bug

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


   补充截图
   ![image](https://user-images.githubusercontent.com/30454841/127298611-e1e581a1-fbd1-408c-a661-527d74ea2d81.png)
   


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