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
X Axis labels not being rotated so they overlap with each other #446
Comments
xaxis: {
labels: {
show: true,
rotate: -45,
rotateAlways: true,
minHeight: 100,
maxHeight: 180,
style: {
colors: "red"
}
},
categories: [
"This is a large label",
"And Another large one",
"Just in case one more"
]
} |
Thank you @junedchhipa , so there's no way to have the chart rotate the labels automatically if an overlap is going to occur? (and leave them unrotated if not) |
Well no, the labels should rotate automatically. I missed checking that, reopening issue. |
I am running into this issue with stacked bar charts while grid.show: Line: apexcharts.js/src/modules/axes/Grid.js Line 90 in 59d3e89
Again, a quick glance, and I can live the grid being drawn; but this might cause some confusion for some. |
I am having the same label overlap issue in bar chart. Here is the code pen url: |
Same story, I have to set rotateAlways: true to avoid this. Not sure why it's marked as "Closed", seems to me it's still an obvious bug. |
This is still the issue. when screen size is more it does not respect Edit: |
I have a stacked bar chart with 3 columns. The labels for each column are large, so I'd expect them to be automatically rotated (or trimmed), but this is not happening, and so the labels overlap. Note that if I add a 4th column then the labels are rotated.
I've created a codepen where the overlap happens.
I've set the following options for the labels:
Am I missing any configuration, or is this supposed to be rotating the labels as it is?
thank you!
The text was updated successfully, but these errors were encountered: