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

Custom Labels & Grid-Lines

1 Answer 64 Views
Chart - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 15 Mar 2016, 09:43 AM

Hey,

I'm using the 'Custom Labels' function for a DateTimeAxis and it works.

But the vertical gridlines are not matching with the 'Custom Labels'.

What is a proper way to fix this problem?

 

kind regards,

Marcel

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 18 Mar 2016, 09:39 AM
Hello, Marcel,

Thank you for contacting us.

The vertical grid lines of the chart should match the axis' major ticks, not its labels. If the plot mode of you axis is between ticks the labels will not be drawn under the tick, respectively the wont be aligned with the grid lines. You should use the on ticks plot mode:
xAxis.PlotMode = TKChartAxisPlotMode.OnTicks;

I hope this helps. If you need further assistance I will be glad to help.

Regards,
Adrian
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 - Xamarin.iOS
Asked by
Marcel
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or