You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "zhaohuaT (via GitHub)" <gi...@apache.org> on 2024/11/27 10:07:27 UTC

[I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

zhaohuaT opened a new issue, #20546:
URL: https://github.com/apache/echarts/issues/20546

   ### Version
   
   5.5.0
   
   ### Link to Minimal Reproduction
   
   1
   
   ### Steps to Reproduce
   
   ![WX20241127-180558@2x](https://github.com/user-attachments/assets/9d936b17-9142-4e31-a349-b9ae11a04e0d)
   
   
   ### Current Behavior
   
   怎么解决
   
   ### Expected Behavior
   
   显示y轴 scale:true 也要设置
   
   ### 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.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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505276216

   option = {
     xAxis: {
       type: 'time',
       minInterval: 24 * 60 * 60 * 1000,
       data: [],
       axisLine: {
         onZero: false,
         lineStyle: {
           color: 'rgba(0,0,0,0.5)'
         }
       }
     },
     yAxis: {
       type: 'value',
       inverse: false,
       name: "",
       nameRotate: 0,
       position: "left",
       scale: true
     },
     series: [ 
       { "name": "沪深300", "showSymbol": false, "type": "line", 
       "data": [ 
         [ "2024-11-25", 0.9999999999999998 ], 
         [ "2024-11-26", 0.9999999999999998 ], 
         [ "2024-11-27", 0.9999999999999996 ] 
         ] 
       } 
     ]
   };


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505343119

   > 已确认 -非常窄的数据范围内轴刻度存在严重**错误**🐛 🐛 添加`yAxis.max:1`无法修复它(因为范围仍然太小),设置`max:'dataMax'`甚至更糟。唯一的解决方法是将_最大值_ 设置为比数据值范围大几个数量级的值 -[演示](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMrGAJ4gCmRA5JALYXWwC-ANLGrKTvkUrHgDGAQwA2VEgCcArhXZ1hGAgEYAdAAZNW5ewBaCpdQAmwsMICyi6mw7oA5pIhG-sQTDMRoAGWEAjCqIEYDIULKycYMDAopAgBEhsnHgUjhSEsADanOio6Hkk5BLUop6M4fnoJmZEWRV5GdQATOqNACwAtMrq7Y0ArNTs6qoAnKNj4xMAHAC65XWZTS0dXT0AbAOwQxPb4zNzdQ3NbZ3djQDsG1s7O6vT2Xl3-cycd8wA3EA)。__[](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMrGAJ4gCmRA5JALYXWwC-ANLGrKTvkUrHgDGAQwA2VEgCcArhXZ1hGAgEYAdAAZNW5ewBaCpdQAmwsMICyi6mw7oA5pIhG-sQTDMRoAGWEAjCqIEYDIULKycYMDAopAgBEhsnHgUjhSEsADanOio6Hkk5BLUop6M4fnoJmZEWRV5GdQATOqNACwAtMrq7Y0ArNTs6qoAnKNj4xMAHAC65XWZTS0dXT0AbAOw
 QxPb4zNzdQ3NbZ3djQDsG1s7O6vT2Xl3-cycd8wA3EA)
   > 
   > 编辑:这是一个值**精度**错误,ECharts 无法处理小于 1e-10 的值 -[演示](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=NYAgvCCMCmC0kDYDcIQHo0mgJ2we2xABMBLAZwAcAbAQwE8QAoDUCGeABhXUwHkBpEBWzQAxuRJ4AdiCokAtiQAujPBSWSZEAN6NUGpVWgAuENqXQAHktMByAKIBhABY1sSskJHiymkACMAVwBzWwBfABo9EEsAQUtyU20QJToKExBbDXloWxBIplQ6eMSzEDJRGiNTJWxA6AiQeRpLY1siGiUaAFkW8Mbo4OwSIiSQUWkukikAGRp_aCpjWvr8qP08PCoNCmNtSOiyHBJoMlMAbWjUXVRblLSM2zkpXPW74k6aC6v389sAJg4_wALJxYP8AKy2RqQcEAKmAAF1GhgwGAOAA6ACcONxePxAA4fnc_oCQWD_ghoVB4Ui3u8QKSgaDIBxwQB2amw4EIxHEkB8u5haJ8sJIIA)。
   
    Thank you


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505356131

   @zhaohuaT - please reopen this issue, it is a BUG. And you may also change the title to start with [Bug].


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505274185

   cannot replicate - [Demo](https://echarts.apache.org/examples/en/editor.html?c=area-pieces&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5JALZW0A0J6DE0AktGFQCcAbgEMANkQBMAFlgAqWADYADPKWqFARmU62pWCNx4AMlxrJYMAFqDgRAGbi8VWAF8SrvbHI58RVPoU1HSiYgCuzF7oeADG4uZgAhFRsNAiTHSs7KnpVABKwGAi_ETKKSDAeBCQMHRiVPZgtB5ezgIQVISwANrZAfpklOa0YmZZA7B45AwARsASsLTQMJHZ6AAmxSJEvRPo3bSSypoAnAC02hfKrLDKAHQnj0_PL48AHAC6KfoHR6dXF00N3ur1Bz0-31Iv2O50umkkwIeYLBnzWsA-2Xc6AxrgA3EA)
   Please use Share button in Editor to copy your code.


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505300168

   confirmed - serious **bug** on axis scale on very narrow data range 🐛 🐛
   Adding ```yAxis.max:1``` does not fix it (since the range remains too small), setting ```max:'dataMax'``` is even worse.
   The only workaround is to set _max_ to a value several orders of magnitude bigger than the data value range  - [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMrGAJ4gCmRA5JALYXWwC-ANLGrKTvkUrHgDGAQwA2VEgCcArhXZ1hGAgEYAdAAZNW5ewBaCpdQAmwsMICyi6mw7oA5pIhG-sQTDMRoAGWEAjCqIEYDIULKycYMDAopAgBEhsnHgUjhSEsADanOio6Hkk5BLUop6M4fnoJmZEWRV5GdQATOqNACwAtMrq7Y0ArNTs6qoAnKNj4xMAHAC65XWZTS0dXT0AbAOwQxPb4zNzdQ3NbZ3djQDsG1s7O6vT2Xl3-cycd8wA3EA).


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505279449

   option = {
     xAxis: {
       type: 'time',
       minInterval: 24 * 60 * 60 * 1000,
       data: [],
       axisLine: {
         onZero: false,
         lineStyle: {
           color: 'rgba(0,0,0,0.5)'
         }
       }
     },
     yAxis: {
       type: 'value',
       inverse: false,
       name: "",
       nameRotate: 0,
       position: "left",
       scale: true
     },
     series: [ 
       { "name": "沪深300", "showSymbol": false, "type": "line", 
       "data": [ 
         [ "2024-11-25", 0.9999999999999998 ], 
         [ "2024-11-26", 0.9999999999999998 ], 
         [ "2024-11-27", 0.9999999999999996 ] 
         ] 
       } 
     ]
   };


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2503457268

   @zhaohuaT 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**
   
   The polyline is set to scale: true and the data source is 0.9999. As a result, the y-axis is not displayed. How to solve the problem?
   </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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505140963

   ![WechatIMG1072](https://github.com/user-attachments/assets/f53767aa-ab3b-42ee-b8cf-77b522209153)
   


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT closed issue #20546: 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决
URL: https://github.com/apache/echarts/issues/20546


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505342868

    Thank you


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505277654

   https://echarts.apache.org/examples/en/editor.html?c=area-pieces&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5JALZW0A0J6DE0AktGFQCcAbgEMANkQBMAFlgAqWADYADPKWqFARmU62pWCNx4AMlxrJYMAFqDgRAGbi8VWAF8SrvbHI58RVPoU1HSiYgCuzF7oeADG4uZgAhFRsNAiTHSs7KnpVABKwGAi_ETKKSDAeBCQMHRiVPZgtB5ezgIQVISwANrZAfpklOa0YmZZA7B45AwARsASsLTQMJHZ6AAmxSJEvRPo3bSSypoAnAC02hfKrLDKAHQnj0_PL48AHAC6KfoHR6dXF00N3ur1Bz0-31Iv2O50umkkwIeYLBnzWsA-2Xc6AxrgA3EA


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505278819

   option = {
     xAxis: {
       type: 'time',
       minInterval: 24 * 60 * 60 * 1000,
       data: [],
       axisLine: {
         onZero: false,
         lineStyle: {
           color: 'rgba(0,0,0,0.5)'
         }
       }
     },
     yAxis: {
       type: 'value',
       inverse: false,
       name: "",
       nameRotate: 0,
       position: "left",
       scale: true
     },
     series: [ 
       { "name": "沪深300", "showSymbol": false, "type": "line", 
       "data": [ 
         [ "2024-11-25", 0.9999999999999998 ], 
         [ "2024-11-26", 0.9999999999999998 ], 
         [ "2024-11-27", 0.9999999999999996 ] 
         ] 
       } 
     ]
   };


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


Re: [I] 折线设置了scale:true 数据源是0.9999 导致y轴不显示,怎么解决 [echarts]

Posted by "zhaohuaT (via GitHub)" <gi...@apache.org>.
zhaohuaT commented on issue #20546:
URL: https://github.com/apache/echarts/issues/20546#issuecomment-2505140307

   ![Uploading WechatIMG1072.jpg…]()
   


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