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

   ### What problem does this feature solve?
   
   Currently the bar-chart has some inconsitent behaviour when values are 
outside of the yAxis.min/max range. This can be quite confusing, see e.g. 
#19196 
   
   [Example 
"Top"](https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVpZesWgCEptAMK0AuiQC-fdORz4iqUmUo1pAN0YAbAK5Ve_WAFsI0IgEYADJtL3GGIgDY3dU88Kg4IKkJYUTt9A1ghMBEogCY3D1hoS3NzHlgAVmVPAwpqOgAjRg5bONhzRjKqcz07AzwAC2AAdyIwDmsiuJBgPAhIGDowUFoW2DU7OfRVNQBuIA)
  
   
![2023-10-16_13h21_18](https://github.com/apache/echarts/assets/20422904/fb9b82df-d3ed-41e2-aadc-4ffcc7f47cc9)
   
   * min=10, max=60
   * `label.position='top'`
   * Bar `200` has a label
   * Bar `null` has no label, which is okay
   * Bar `5` has no label, which is unexpected
   
   [Example 
"Bottom"](https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVpZesWgCEptAMK0AuiQC-fdORz4iqUmUo1pAN0YAbAK5Ve_WAFsI0IgEYADJtL3GGIgDY3dU88Kg4IKkJYUTt9A1ghMBEogCY3D1hoS3NzHlgAVmVPAwpqOgAjRg5bONhzRjKqcz07AzwAC2AAdyIwDmsiuJBgPAhIGHLgMDBge1oW2DU7RfRVNQBuIA)
  
   
![2023-10-16_13h26_08](https://github.com/apache/echarts/assets/20422904/84178226-15aa-4d87-b518-3cf9daa15a44)
   * This example is the same, except, that `label.position` is now `bottom`
   
   So it seems, that labels higher than max are displayed, but values lower 
than min are not?
   
   I think it would make sense to always display the labels, even for values 
that are outside of min/max. Then we can also easily differentiate, between a 
bar hat has no data (i.e. `null`) and a bar where the value is just outside of 
min/max. 
   
   
   ### What does the proposed API look like?
   
   I think you can just make this behaviour the new default.
   
   You could of cause also add a new config option to activate this feature: 
e.g. `label.showLabelsBelowMin`


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to