Bug with TKChart with right y axis label not showing

2 posts, 0 answers
  1. gerry
    gerry avatar
    46 posts
    Member since:
    May 2007

    Posted 02 Jun Link to this post

    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.




  2. Adrian
    Adrian avatar
    159 posts

    Posted 07 Jun Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top