Skip to content

Background Width Not Truncated with oversizedBehavior #2044

Description

Hi amCharts team,

I've encountered an issue when using oversizedBehavior: "truncate" together with a background on axis labels.

When the chart is scrolled to display a large number of bars, the label background expands to its full width instead of remaining constrained to the truncated text.

In the example below, if you increase the scrollbar range to display more bars, you'll notice that the label backgrounds stretch to their full width even though the label text is truncated.

Is this expected behavior, or could this be a bug? If it's expected, is there any workaround or recommended solution to keep the label background constrained to the truncated text?

https://codepen.io/srkrishnan/pen/wBgmOqK?editors=0010

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions