This is a migrated thread and some comments may be shown as answers.

Labels in x-axis and y-axis getting overlapped

1 Answer 217 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
rajan
Top achievements
Rank 1
rajan asked on 13 Feb 2015, 08:59 AM
Hi support team,


   I am in kind of stuck to finalise to use  telerik charting framework for iOS. When there are large number of data , the label of x-axis and y-axis gets overlapped.  There are few  thread for there platform , but did not find one for iOS. Can you please help me to figure out how to get rid of overlapping , or  set up label steps automatic. 


any help greatly accepted. 

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 13 Feb 2015, 04:55 PM
Hello Rajan,

Thank you for contacting us.

To avoid overlapping of your axis labels you should set the fitMode property of TKChartAxisLabelStyle to multiline. Please consider the code snippet below:
_chart.xAxis.style.labelStyle.fitMode = TKChartAxisLabelFitModeMultiline;

If you need to change the tick interval of your axis you should use its majorTickInterval property. The code snippet below demonstrates how to change the tick interval of TKChartNumericAxis:
TKChartNumericAxis *yAxis = (TKChartNumericAxis *)_chart.yAxis;
yAxis.majorTickInterval = @10;

I hope this helps. Should you have further questions, I will be glad to assist you.

Regards,
Adrian
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
rajan
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or