Skip to content

[Feature] Apply styling on a stack level for bar charts #21519

@acsbendi

Description

@acsbendi

What problem does this feature solve?

Currently, styling is applied to each individual series/data point, but there's no way to apply it to the whole stacked group. Therefore, some styling may look strange since the bar isn't considered as a whole when applying the styling.

The concrete example where it matters is borders, which cut into the bar.
This is how a dashed border looks on a stacked bar currently:

Image

And this is how it should look:

Image

What does the proposed API look like?

The simplest I can think of is to introduce a new optional field in BarItemStyleOption, which could change where the styling is applied, for example target?: 'stack' | 'series'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions