Changing Axis Label Style: Font and color

3 posts, 0 answers
  1. Tomer
    Tomer avatar
    3 posts
    Member since:
    Apr 2016

    Posted 15 Apr 2016 Link to this post


    I am trying to change the X-Axis label style for a line-chart.

    In specific, I am attempting to change the font, as well as the label text color in the following way:


    var series = new TKChartLineSeries(graphData.ToArray());
    series.Style.Stroke = new TKStroke(ConvertToUIColor(lineColor));
    peakTimeChart.XAxis.Style.MajorTickStyle.TicksHidden = true;
    peakTimeChart.XAxis.Style.MinorTickStyle.TicksHidden = true;
    peakTimeChart.XAxis.Style.LineStroke = new TKStroke(ConvertToUIColor(axisColor));
    peakTimeChart.XAxis.Style.LabelStyle.TextColor = UIColor.Red;
    peakTimeChart.XAxis.Style.LabelStyle.Font = UIFont.FromName("Avenir Next Condensed", 7f);


    Everything seems to be working, except of the label color and font.

    I tried to to reload data as was suggested in the iOS-UI forum, but that didn't seem to work.


    Am I missing anything?


  2. Sophi
    Sophi avatar
    103 posts

    Posted 20 Apr 2016 Link to this post

    Hi Tomer,

    I tried reproducing the behavior you have explained but everything seems to work just fine within my project.
    Could you please send us a sample project demonstrating the issue so we can investigate and provide you with solution immediately.
    Thank you for your understanding.
    Looking forward to hearing from you. 

    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. Tomer
    Tomer avatar
    3 posts
    Member since:
    Apr 2016

    Posted 21 Apr 2016 in reply to Sophi Link to this post

    Thanks Sophie,

    I just added:


    at the end, and it seems to be wokring :)


Back to Top