-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Vertical datalabel suppressed for last column #9687
Comments
Hi @kzoon, Demo: Docs: @TorsteinHonsi Should we consider it as a bug ? |
Thanks for your quick response. I can work with the datalabels.crop option for now. But I still consider this a bug, because I can't have cropped vertical data labels. By the way: vertical labels are cropped, even when the horizontal label would fit. So you must be doing some cropping after rotation... See http://jsfiddle.net/kzoon/2bd8vomc/7/ |
Let's keep this issue open until we'll decide if this is a bug or not. |
Yes it's a bug. I thought we had is covered, see #4779 and the test at https://jsfiddle.net/highcharts/fLcjuspq/. But the problem in #4779 was the opposite, we had rotated labels displayed outside when they should have been cropped. |
I have a new version release in three weeks time. |
There's no ETA for the fix at this moment. It's doubtful that the fix will make it to 7.0.2 (planned to be released within next few days). |
I was planning to disable series.dataLabels.crop as a workaround. But if you have a more elegant workaround, I'm certainly interested! |
@kzoon Internal note: |
The workaround very soon suppresses the first label in my charts. See example http://jsfiddle.net/kzoon/xtwyqrm3/18/ Somehow this is caused by my use of Min and Max on the x-axis. I started doing this as a suggested workaround for tick marks and labels not being rendered when there was no data in the chart. The link to the Highchart issue no longer works (http://forum.highcharts.com/highcharts-usage/show-category-labels-when-there-is-no-data-t32428/), so I can't check if using Min/Max is still needed. Is there a way to make the current workaround work with Min and Max on the x-axis? |
Working forum link: https://www.highcharts.com/forum/viewtopic.php?f=9&t=32428 |
Thanks very much! Now I can implement a workaround in my next version. I improved the workaround slightly: |
Workaround idea for now is to adjust the value until the chart is rendered correctly. Currently there's no better logic to decide when the labels should be hidden, but this issue is still open, so we'll be looking for a proper fix. |
Actually, It works on the narrowest of charts: Thanks again. I have enough to go ahead |
Still an issue in 7.2.1 |
Still an issue in v9.0.1. |
I am sorry to see this issue still open in V10.0. How can issues stay open for 3+ years??? For anyone having the same issue: this rough workaround works on V10.0: https://jsfiddle.net/kzoon/afcu2908/70/ |
Hi @kzoon, Thank you for updating a workaround and sorry it's been hanging for so long. We'll try to prioritize and we'll provide more info soon. Thank you for bumping this up. |
In case overlapping is not an issue, |
Cropping has been discussed above: #9687 (comment) |
Expected behaviour
All categories in a column chart should have data labels when there is enough space to render them.
Actual behaviour
The last data label in a column chart gets suppressed when data labels are rotated. This happens when you limit the width of the chart. The new chart width leaves enough space to render the data label.
Live demo with steps to reproduce
http://jsfiddle.net/kzoon/2bd8vomc/1/
Product version
Highcharts v6, v7
Affected browser(s)
All
The text was updated successfully, but these errors were encountered: