Skip to content

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

Open
@Krishna-Chidrawar

Description

@Krishna-Chidrawar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions