Skip to content

enforceMinMax on stacked guages #3918

@Sebastian-medilingua

Description

@Sebastian-medilingua

Description

I'm trying to create a gauge which shows 3 categories stacked together whilst the max is enforced to a set value. But it doesn't stack then. I can understand why this is, but it makes it hard to figure out why it happens. It feels as if its a bug even though in the code there is clearly a check for it
https://github.com/naver/billboard.js/blob/744c4fdfc0a75b1bb965b2a6d2d861cb6bea6801/src/ChartInternal/shape/arc.ts#L335C3-L344C4

Could it be made more clear that enforceMinMax is currently only for unstacked/multi gauges?
Would it be possible to have it so that data can be stacked and have a limit? (Or is that not possible)

Steps to check or reproduce

https://jsfiddle.net/357rLq90/2/

(what I intended was that received and expected are fully shown and due being only partially shown but the labels displaying the correct value)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions