Open nanatiris opened 8 years ago
Hi,
If you set with of grouped labels in their style to small value, like e.g. 10, then text will be wrapped - http://jsfiddle.net/q0kns5av/
autoRotationLimit might be a good enhancement for the plugin - I will add the label for this issue.
Thank you for the suggestion. I'm still trying to stay away from the fixed width solution. Unless instead of a fixed width, can I do like percentage e.g. 100% of the label container (bounding box of the grid)?
Kind regards.
Thank you @KacperMadej fixing the width did the work I tried % its not woking @nanatiris
@KacperMadej how would you handle text overflow in base category column? please check link http://jsfiddle.net/q0kns5av/8/ i have updated category value that contains "portland..."
please note more the text we add to category value, it flows out of grid.
Hi @strongbh, As a workaround you can set negative y value.
Demo:
Be aware that its really limited workaround for your specific demo.
@sebastianbochan This is not a good workaround. if i add more and more text i need to adjust y value. check here: http://jsfiddle.net/fw16rogq/2/ text is overflowing. autoRotationLimit would have been a good option if i could use it in this case.
As I said it was really limited workaround. When we will find fix or better workaround, will let you know.
Thanks.
Good day!
I'm trying to set up a column chart which contains long labels for some categories. In this fiddle: http://jsfiddle.net/nanatiris/kmocj37n/2/, we are configuring the x-axis labels to have a 90 degrees rotation and ellipsis when the text is too long. This causes the categories to rotate as well but it wasn't adding the ellipsis, therefore, i added a rotation: 0 for the categories. However, another issue shows wherein the categories don't wrap or have an ellipsis, causing it to overlap with other category labels.
What should be the best workaround for my use case? I've read that others have used a fixed width and text overflow in the label's style. However, I don't think that is the best solution for my use case as the chart has a dynamic data. It will be difficult to assign a universal fixed width for that.
Also, I'm looking at the
autoRotationLimit
of Highcharts.Is it possible that this can be applied to the grouped categories too? I think that the autoRotationLimit can be a possible workaround to dynamically rotate or wrap the texts in the category levels.
Thanks in advance for the help!