Skip to content

DataLabels overlap when series has 2 records and cannot be adjusted individually with offsetY #5107

@can-guven

Description

@can-guven

Description

When there are 2 records in a series, the dataLabels overlap.
Since the offsetY property applies to the entire chart, I cannot set a different offsetY value for each label to adjust their positions individually.

I don’t want to reduce the font size or increase the chart area, as the chart size is fixed and making the font smaller will make it unreadable.

Steps to Reproduce

Create a chart with a series that contains 2 records.

Enable dataLabels.

Observe that the labels overlap and cannot be separated using offsetY.

Expected Behavior

Each dataLabel should be adjustable individually (e.g., with its own offsetY) or there should be another way to avoid overlapping labels.

Actual Behavior

All labels in the chart share the same offsetY value, causing overlapping when multiple values exist in a series.

Screenshots
Image
Reproduction Link
https://codepen.io/cngvn/pen/myeNapj

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