Skip to content

packedbubble data labels misaligned when legend position is changed #20120

Closed

Description

@jedrzejruta

Expected behaviour

When vertical legend position changes, dataLabels positions are recalculated and aligned properly.

Actual behaviour

When vertical legend position changes, dataLabels position stays the same, resulting in wrong alignment.

Live demo with steps to reproduce

https://jsfiddle.net/BlackLabel/qcr9un6f/

If the chart width is smaller than 600px, the dataLabels are rendered correctly.

Product version

Regression, worked fine in v10.3.3, stopped working from v11.

Activity

  1. karolkolodziej commented on Nov 14, 2023

    @karolkolodziej
    Member

    Internal note:
    spacingLeft and marginLeft have no effect on the labels and they are rendered correctly.

  2. mark-leblanc-moodys commented on Nov 16, 2023

    @mark-leblanc-moodys

    This issue is affecting a production release. Is there any update?

  3. hubertkozik commented on Nov 16, 2023

    @hubertkozik
    Member

    Internal note:
    Bisected to f1f0152 FYI @jakubSzuminski

  4. self-assigned this
    on Nov 20, 2023
  5. hubertkozik commented on Nov 20, 2023

    @hubertkozik
    Member

    I have prepared a workaround for that issue. If you want to use it in your project simply copy-paste the IIFE function from the below demo.

    Live demo: https://jsfiddle.net/BlackLabel/7gryhpx2/

  6. added a commit that references this issue on Nov 22, 2023
    e6d780f
  7. added a commit that references this issue on Nov 23, 2023
    8523d5b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions