Set X axis labels

2 posts, 0 answers
  1. Cameron
    Cameron avatar
    17 posts
    Member since:
    Jan 2011

    Posted 17 Jun 2012 Link to this post

    Hello Telerik,

    I'm in the process of migrating from the old Chart to ChartView. We have a requirement to set every X axis tick label. The old chart allows you to do that by iterating through the TickPoint collection of the X axis and set labels as follows: 

     foreach (var tc in ChartArea.AxisX.TickPoints)
            string lable = GetLabel( tc.Value);

            tc.Label = label;

    Can I do the same with ChartView DateTimeContinuousAxis? If so, how? I don't see a class called TickPoint in ChartView reference material.


  2. Petar Marchev
    Petar Marchev avatar
    1029 posts

    Posted 20 Jun 2012 Link to this post

    Hi Cameron,

    The RadChart and the RadChartView are different controls and they do not have an equivalent for all features. You should also not expect them to have the same properties. To achieve the desired results you can set a template for the axis labels:
       <TextBlock Text="{Binding}" />

    Kind regards,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top