You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "xiaozhaorong (via GitHub)" <gi...@apache.org> on 2023/06/14 14:46:26 UTC

[GitHub] [echarts] xiaozhaorong opened a new issue, #18762: [Bug] 柱状图 data: 为特定数字时 显示没有铺满少一截

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

   ### Version
   
   4.9.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurAB6EDkADAKQUA0sA9E7IGe6gL6mC7scegJ6VaDZq0BQct15kATILqMWsQM_KEkrD4zY1OiNiBoORUkFAYxhgAhhGgAZMwCMApgBtCAMzOOAzveIBfesQUADUAXeOJSAEFSCA9CJD9iPkjowgBtSQU2QHL5AE1Q1VRVdFwzc1SKQG8fQGj1CgBdSR9iGv90BUBvn0B0JXbACwjiLxx7GNg0_Ml0MD4Qe0pbMywGUdhoMwBbKc1AKnNASGNAN9NARh1AXe15wp0PcyMAa0owYHNHI8KZrABZM1IAdTwwAAtCKQAWZqFRx2JyxBboDxfYAAd0IYCwAFd7IDjiBgB4IJAYJRLBjcPYKAt4sdiqUhgBOOqqBroOo-ADcQA
   
   ### Steps to Reproduce
   
   ![image](https://github.com/apache/echarts/assets/41188311/b6d5dd4f-8116-461e-98b2-a715bc173ced)
   ![image](https://github.com/apache/echarts/assets/41188311/6d79527c-7352-44e1-b215-458df4fca9bb)
   
   
   ### Current Behavior
   
   复现的链接
   
   https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurAB6EDkADAKQUA0sA9E7IGe6gL6mC7scegJ6VaDZq0BQct15kATILqMWsQM_KEkrD4zY1OiNiBoORUkFAYxhgAhhGgAZMwCMApgBtCAMzOOAzveIBfesQUADUAXeOJSAEFSCA9CJD9iPkjowgBtSQU2QHL5AE1Q1VRVdFwzc1SKQG8fQGj1CgBdSR9iGv90BUBvn0B0JXbACwjiLxx7GNg0_Ml0MD4Qe0pbMywGUdhoMwBbKc1AKnNASGNAN9NARh1AXe15wp0PcyMAa0owYHNHI8KZrABZM1IAdTwwAAtCKQAWZqFRx2JyxBboDxfYAAd0IYCwAFd7IDjiBgB4IJAYJRLBjcPYKAt4sdiqUhgBOOqqBroOo-ADcQA
   
   ### Expected Behavior
   
   
   https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurAB6EDkADAKQUA0sA9E7IGe6gL6mC7scegJ6VaDZq0BQct15kATILqMWsQM_KEkrD4zY1OiNiBoORUkFAYxhgAhhGgAZMwCMApgBtCAMzOOAzveIBfesQUADUAXeOJSAEFSCA9CJD9iPkjowgBtSQU2QHL5AE1Q1VRVdFwzc1SKQG8fQGj1CgBdSR9iGv90BUBvn0B0JXbACwjiLxx7GNg0_Ml0MD4Qe0pbMywGUdhoMwBbKc1AKnNASGNAN9NARh1AXe15wp0PcyMAa0owYHNHI8KZrABZM1IAdTwwAAtCKQAWZqFRx2JyxBboDxfYAAd0IYCwAFd7IDjiBgB4IJAYJRLBjcPYKAt4sdiqUhgBOOqqBroOo-ADcQA
   
   ### 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


[GitHub] [echarts] xiaozhaorong commented on issue #18762: [Bug] 柱状图 data: 为特定数字时 显示没有铺满少一截

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

   解决了 谢谢


-- 
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 #18762: [Bug] 柱状图 data: 为特定数字时 显示没有铺满少一截

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

   @xiaozhaorong 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] Histogram data: When it is a specific number, it shows that it is not full and one section is missing
   </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


[GitHub] [echarts] xiaozhaorong closed issue #18762: [Bug] 柱状图 data: 为特定数字时 显示没有铺满少一截

Posted by "xiaozhaorong (via GitHub)" <gi...@apache.org>.
xiaozhaorong closed issue #18762: [Bug] 柱状图 data: 为特定数字时 显示没有铺满少一截
URL: https://github.com/apache/echarts/issues/18762


-- 
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] lixingjuan commented on issue #18762: [Bug] 柱状图 data: 为特定数字时 显示没有铺满少一截

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

   1. 通过设置`containLabel: true` 可以看到目前x轴的数值分布,可以看到底部x轴的最大值为10,平分5份,所以柱状图没有铺满;
   2. 如果想要实现一直按照最高柱子铺满chart, 可以使用
   ``` 
    // X轴
     xAxis: {
       max: 'dataMax'
     },
     ```
     表示x轴的最大值,按照当前data的最大值;
     [https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurAB6EDkADAKQUA0sA9E7IGe6gL6mC7scegJ6VaDZq0BQct15kATILqMWsQM_KEkrD4zY1OiNiBoORUkFAYxhgAhhGgAZMwCMApgBtCAMzOOAzveIBfesQUADUAXeOJSAEFSCA9CJD9iPkjowgBtSQU2QHL5AE1Q1VRVdFwzc1SKQG8fQGj1CgBdSR9iGv90BUBvn0B0JXbACwjiLxx7GNg0_Ml0MD4Qe0pbMywGUdhoMwBbKc1AKnNASGNAN9NARh1AXe15wp0PcyMAa0owYHNHI8KZrABZM1IAdTwwAAtCKQAWZqFRx2JyxBboDxfYAAd0IYCwAFd7IDjiBgB4IJAYJRLBjcPYKAt4sdiqUhgBOOqqBroOo-ADcQA](在线效果地址)
     
     [https://echarts.apache.org/zh/option.html#xAxis.max](相关api地址)
     
     
   


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