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

How to Adjust X-Axis Label in TKChart?

1 Answer 59 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.
Nandu
Top achievements
Rank 1
Nandu asked on 02 Sep 2015, 02:50 PM

Hi,

Im using TkChart, i have total 23 dates in x-axis. If im using zoom out functionality the x-axis labels are overlapping.

in my case i want to show every time zoom in or zoom out at least 3 or 4 dates. In this case How can i manage the a-axis labels.

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Yoanna
Telerik team
answered on 04 Sep 2015, 07:17 AM
Hello, Nandu,

Thank you for contacting us.

TKChart  control has an option for the zoom range to be constrained. A minimum and maximum zoom value could be set with using TKChart's axis zoomRange property. Depending on your data points count you can set it as its shown below:

chart.xAxis.zoomRange = [[TKRange alloc] initWithMinimum:@(2) andMaximum:@(5)];

If you need further assistance do not hesitate to contact us.

Regards,
Yoanna
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Nandu
Top achievements
Rank 1
Answers by
Yoanna
Telerik team
Share this question
or