Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Calculate text width for label
posted

Hello,

I am working with bar chart and want to calculate the width of the longest label on Y axis to know how much place I should preserve for labels.

What is the best way to do that?

Thanks

Parents
  • 29105
    Suggested Answer
    Offline posted

    Hello Oleksandr,

    To ensure all the text is shown for your axis labels I recommend enabling the WrapText property.


    this.UltraChart1.Axis.Y.Labels.WrapText = true;

    You can also use WrapTextAxisLabelLayoutBehavior, as this has been discussed on forums here.

    Do let me know if you have any questions regarding this matter.

Reply Children
No Data