Skip to content

Support for Sub-Categories on X-Axis for Grouping Fields in Stacked-Grouped Bar Chart. #4976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Krishna-Chidrawar opened this issue Mar 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Krishna-Chidrawar
Copy link

Krishna-Chidrawar commented Mar 8, 2025

Description

I am using stacked-grouped bar charts and need the ability to introduce sub-categories on the X-axis for better grouping. Currently, while we can group series using the group property, the X-axis does not support displaying these groups as hierarchical sub-categories.

For example, I would like to categorize data under broader groups like "Sales" and "Production" while showing subcategories such as "Q1" and "Q2" within each group as shown in the image . Currently, the X-axis treats all categories at the same level, making it harder to differentiate groups visually.

I have attached an image to illustrate this use case. It demonstrates how hierarchical grouping can be added to the X-axis for better clarity.

This functionality should be supported since its absence feels like a limitation.

Steps to Reproduce

  1. Create a stacked-grouped bar chart
  2. In it use the group property in series to group the data For ex: "Sales" and "Production." in my case.

Expected Behavior :

The X-axis should visually distinguish broader groups (e.g., "Onine Advertising" and "Sales Training") and show subcategories (e.g., "Sales", "Production") nested under them.

Actual Behavior :

The X-axis treats all subcategories at the same level, making it harder to distinguish the groups.

Screenshots

With subcategory labels

  • I have added the sub-labels here to illustrate the intended depiction.

Reproduction Link :https://codepen.io/Krishna-Chidrawar-the-reactor/pen/YPzxeOM

@Krishna-Chidrawar Krishna-Chidrawar added the bug Something isn't working label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant