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

Bug with TKChart with right y axis label not showing

1 Answer 30 Views
Chart - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
gerry
Top achievements
Rank 1
gerry asked on 02 Jun 2016, 01:04 PM

See the attached screenshot.

I have a TKChart with a TKChartBarSeries. If I display the y axis to the right then it is missing the last label. Note that if I display it to the left (the default) it displays fine.

 

            var categoryAxis = new TKChartCategoryAxis (objectCategories.ToArray ());

            categoryAxis.Style.LabelStyle.Font = UIFont.BoldSystemFontOfSize(10);
            categoryAxis.Style.LabelStyle.TextAlignment = TKChartAxisLabelAlignment.Right;

If necessary I can product a sample app but am hoping this is something you might be able to confirm. The version of TelerikUI is 2016.1.324.0.

 

Thanks,

Gerry

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 07 Jun 2016, 10:32 AM
Hi, Gerry,

Thank you for contacting us.
The described behavior is expected because the first axis label has its own TextAlignment property that you should set. You should add the following line of code:
categoryAxis.Style.LabelStyle.FirstLabelTextAlignment = TKChartAxisLabelAlignment.Right;

I hope this helps.

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
gerry
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or