You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "raj1234567901 (via GitHub)" <gi...@apache.org> on 2025/04/07 20:04:37 UTC

[I] [Bug]An unintended "0" data label is displayed alongside the value of the last bar in the bar chart when a logarithmic scale is applied to the Y-axis. [echarts]

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

   ### Version
   
   5.6.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmurAM4AWwA7oWAE4CuApsQL4A0xAngIIAeEUoVQlYAL0IAmTqLBcQTQgHJswAOZKZJUmACGdMADVd2ZoQAMAOgCMnNlr79Bw4ugmxprjPMWwlAY10wJjVgOi5Ne2JSJjoIJiFYAG0vEVFvBWUAI31I9NhoXQBbXyUAYWAGaDA89IATIN1CJNsPdlgAFnaAZi7YAE5-8wB2HoBWdonO9utzGYBdO3ycujKgkLCuAHFdAj9zAFJa0WxdLKZsF3z0CmpaRiYl65BgUghIGGVMEGP0gDMYGAAMoQMS-WZedAcSGwU7nbAAGV0XEqYCu13IEDqTAA8gA3WKnPZ_EwxGGsLwU9CLYgNPQALSwRXRN0oNAwDyi6DUcTqLNgfEIADY5l4uJJCB0JmKpKLRHwJbBrNLRFkwti6AB1LFgcgWNgoVgAbiAA
   
   ### Steps to Reproduce
   
   1.Open the provided Minimal Reproduction link.
   
   2.Observe that an extra data label, "0", is displayed under the value of the last bar of the bar chart (see the "Current Behavior" screenshot).
   
   3.When hovering over the last bar on the chart, the "0" data label appears under the value of the second-to-last bar, and vice versa.
   
   ### Current Behavior
   
   ![Image](https://github.com/user-attachments/assets/ae768cfa-3803-47af-9b82-becae133f73b)
   When the Y-axis is set to logarithmic scale (type: 'log') and the min or startValue is set to 0.1, an unwanted data label "0" is displayed alongside the value of the last bar.
   
   Furthermore, when hovering over the last bar, the "0" data label appears under the second-to-last bar. Similarly, when hovering over the second-to-last bar, the "0" data label reappears under the last bar.
   
   
   
   ### Expected Behavior
   
   The data label "0" should not appear beneath the last bar's value, regardless of the Y-axis type (logarithmic or linear) or the min or startValue settings. The data labels should accurately reflect the value of the corresponding bar. When hovering over any bar, the data label displayed should strictly correspond to the value of that specific bar, without affecting the labels of other bars.
   
   ### Environment
   
   ```markdown
   - OS:macOS Sequoia
   - Browser:Chrome 135.0.7049.42
   - Framework:React@16.12.0
   ```
   
   ### 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] [Bug]An unintended "0" data label is displayed alongside the value of the last bar in the bar chart when a logarithmic scale is applied to the Y-axis. [echarts]

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

   confirmed weird bug when _yAxis.z_ value is 2 or 4. 
   Workaround is setting  _yAxis.z_ to some other value, or adding ```axisLabel: {showMinLabel: false},```


-- 
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] [Bug]An unintended "0" data label is displayed alongside the value of the last bar in the bar chart when a logarithmic scale is applied to the Y-axis. [echarts]

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

   Thanks @helgasoft for providing a solution but yeah it is really a weird 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