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
5020
X-axis Labels Randomly Display as "..."
posted

Hi,

I'd like to know how to prevent X-axis labels from randomly displaying as "..."

http://www.gfycat.com/SlowOldfashionedDogfish

Parents
No Data
Reply
  • 26458
    Offline posted

    Hi,

    The ellipsis can be quite annoying in certain cases. The chart trims the labels and appends ellipsis to prevent label overlap. 

    We wrote a smart axis label panel feature a while back. It'll scale the font or rotate/stagger labels to prevent overlap instead of trimming.
    Have you tried using that? (xAxis.useSmartAxisLabelPanel = YES) 

    Without the smart axis panel, I think your other option would be to change the date formatting for a shorter string or increase the axis interval for more space between the full, untrimmed labels. 

    Are you using a CategoryXAxis or a CategoryDateTimeXAxis in your project?
    I can write up a sample if that will help.

Children