Skip to content

centerInCategory leaves enough space for all of the x values, but does not take into consideration that the columns with the same x value are stacked #17610

Description

@vitaliy-kretsul

Prerequisites

Column chart with grouping: true and centerInCategory: true and series containing multiple points for same x value. Columns for repeated x values are displayed overlaying each other.

Expected behaviour

Overlaying columns displayed with the same 'normal' distance to neighbouring columns as between any other regular columns.

Actual behaviour

Instead overlaying columns are rendered with empty space, enough for all repeating x values be displayed separately, without taking into account that the columns with the same x value are stacked.

Live demo with steps to reproduce

https://jsfiddle.net/Cortez/h85dgapz/

Product version

Highcharts 10.2.0

Affected browser(s)

Google Chrome 104.0.5112.79

Additional

Related forum discussion:
https://www.highcharts.com/forum/viewtopic.php?t=49260

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions