MashRoofa opened a new issue #13839:
URL: https://github.com/apache/incubator-echarts/issues/13839


   ### Version
   4.9.0
   
   ### Reproduction link
   
[https://codepen.io/ChrisMash/pen/ExgXZLv](https://codepen.io/ChrisMash/pen/ExgXZLv)
   
   ### Steps to reproduce
   Centering labels on second and third xAxis cannot be done in an intuitive 
manner when the number of items in each hierarchy or grouping is not even. The 
idea of hierarchies and grouped data (as to my understanding) is not fully 
supported?
   
   ### What is expected?
   What Im trying to achieve here is to produce a simple bar chart that has 2 
series and 3 hierarchies. The code example i provided has this already 
implemented. The issue though (and what is expected) is a way to properly 
center the values on the second and third xAxis without having to add or remove 
empty strings in my xAxis data array.
   
   ### What is actually happening?
   The labels for second and third axes are always to the left since i have to 
provide empty strings always for my axes to work properly.
   
   ---
   I used this issue to better understand how to use hierarchical data on a bar 
chart, please let me know if there is a better way to generate charts from such 
data.
   
   https://github.com/apache/incubator-echarts/issues/4902
   
   Here is the example data i used and the expected result in excel.
   
   ![Expected Result in 
Excel](https://user-images.githubusercontent.com/24549536/102610349-bc1cac80-4135-11eb-9aa2-e70f2eea78d5.png)
   
   Thank you very much for this great library 👌
   
   <!-- 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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to