Skip to content

Data labels do line break only after resize in treegraph with styledMode #20499

@selevt

Description

@selevt

Expected behaviour

When loading the chart, the data labels have line breaks were needed to fit in the marker.

Actual behaviour

The labels are in one line and line breaks are only applied once resizing the chart.

On load:
image

After resizing the window:
image

Live demo with steps to reproduce

https://jsfiddle.net/0h1Le3ou/19/
It does seem to not be completely consistent - sometimes on load of the fiddle it'll already have the line break. But saving the fiddle, so only the preview is reloaded without the full page puts it into one line consistently.

Resize the window -> labels will have line breaks

Product version

11.3.0

Affected browser(s)

Firefox, Chrome

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions