Skip to content

Unable to get the true rendered width of a label to detect overflow on a bar chart #1757

Description

@cheryllaird

Bug description
Similar to this issue #1632. I want to be able to measure the rendered with of a label.

On my bar chart I want the labels to wrap (using oversizedBehavior: "wrap-no-break",) but if any text overflows the column I want to be able to hide the label.

In the codepen below you can see that I am trying to get the _contentWidth of the label in the Add bullet(s) section. However this is not always hiding the labels if it overflows the series on the bar when a single word overflows.

image

Codepen: https://codepen.io/cheryllaird/pen/rNXWqeO

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions