vitalets commented on issue #19441: URL: https://github.com/apache/echarts/issues/19441#issuecomment-3905097792
The workaround I ended up using after struggling with grouped columns: The idea is to use two extra axes: - one axis for groups with an **odd** number of children - another axis for groups with an **even** number of children. Setting `boundaryGap` to **false** for this axes aligns the group labels to the center between data rows. Resizing such charts keeps the group labels in the correct positions. [Full code.](https://echarts.apache.org/examples/en/editor.html?c=bar-y-category&code=pVVLb5tAEL7zK-ZSAWpKbJJciFypaqyoUtv0UKUH5MMaFkODWcQuia3I_72zwy6P1o378MHA8M3Mt988SEQlFWwa0dYSFvDsALi3-gnmbgQxPurfc8IU34hmH4H73twi4AweWdnyCOaz2eHsJWw4YMMeu9IXky08le1iiHBxKtvlgL08hb0asFcDM-dw7TidNqpIHrQ08Wx1bUwiTT-yNS_J3Fv5I6-OmEnbI3ZDpuDWfLf-zhMVPPC99LqC-EEmmiVLcg-NsHhL5em8C8W32rEDxvgeI8A4WVC3MveCICBosGW15_k6CGJ9X4MHBkew-k6j9TWwwvl-T6BkUn1FaZADKRTTf1DyaqNyeANz4tMZKXrv8Lojb6AdEwq5LdK05B-qlO8w6gj_iak8yEohGqLVZzmHkNyLDKYvXkEIi8UCZj5JBqPadGRGqSjCAfAVN-C-vL_BOge8OqJWhajMzOze7QoZGX-1r7GbXOoqVzcUddW-g8QTjBWWYAAMIfrMNhKAzMVTBKppeYcwDZoyxaJRAW2S83NQeSEpEPlKO9tPBepyd3MzdXqJTC1koY-Ib0qeKWMVWSa5opH_U84AXVn05FpL0koltvdaIhSF2mRyQB2VijCEzUSlvvFik2N2dy3K1DD6OVhfviOKjeajL8xp2Zb3y89T3f5FubVoq5Q1-1tWR5Ax7Le_VHTk8_8qDRMxiYhKfMGmB1Fx4DvVMOCVwjWpBJIoMrsO05Zrkz0SbFiNk0AEj6sd4IijSl7suiu_l56-AJJrUe36t-eo2FYrG87m-J0xNqP2mjW9qUtkVidN3Gh5lpjQ_3WbEUxvMssCt_0P&enc=deflate) <img width="803" height="521" alt="Image" src="https://github.com/user-attachments/assets/1405cb5c-f5ba-440a-8c1e-f36c1a851cef" /> -- 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]
