Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long axis labels is not retaining its original height (highcharts-grouped-categories) #224

Open
bm64 opened this issue Oct 16, 2024 · 0 comments

Comments

@bm64
Copy link

bm64 commented Oct 16, 2024

Issue transferred from the Highcharts GitHub repository highcharts/highcharts#22004

Expected behaviour

When we have long axis labels, even after multiple resize it should always have the correct height instead of more height

Actual behaviour

When we have long axis labels (rendered as non-rotated label), reduce the chart size by resizing it then it will become a rotated label. Now again increase the chart size by resizing it again, we could notice that it is not retaining its initial height (Taking more height for the x-axis labels). Issue is replicable when nesting is enabled via highcharts-grouped-categories

Live demo with steps to reproduce

template: https://jsfiddle.net/82abwekd/1/

Product version

"highcharts": "^11.4.1",
"highcharts-grouped-categories": "^1.3.2",

Affected browser(s)

Chrome

Steps to reproduce:
1. Initial onload with more space for chart, so axis labels can render normally (non-rotated):
image

2. Do a resize by reducing the chart size, so labels will be rotated:
image

3. Go back to the initial size to retain the non-rotated labels:
image

Here we noticed huge space which should not be the case. It should render same as like initial case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant