How to Set X-Axis Labels Programmatically ?

Thread is closed for posting
2 posts, 0 answers
  1. Noha
    Noha avatar
    30 posts
    Member since:
    Sep 2010

    Posted 15 Dec 2010 Link to this post

    Dear all

    As shown in this Demo
    I want to set X-Axis labels programmatically

    as shown in the pic in the Demo X-Axis is = [ 12, 3, 4, 5 ]

    I want to change it to be text instead.

    Can anyone help me how to do that programmatically ?

  2. Joel
    Joel avatar
    172 posts
    Member since:
    Oct 2006

    Posted 15 Dec 2010 Link to this post

    I just had to look it up myself this morning as it had been a while, there are several ways, but this is the way I did it today.

    Dim rollcount As Int32 = 0
    RadChart1.PlotArea.XAxis.AddRange(1, UBound(lblArray) + 1, 1)
            Do Until rollcount = UBound(lblArray) + 1
                RadChart1.PlotArea.XAxis(rollcount).TextBlock.Text = lblArray(rollcount)
                rollcount += 1
Back to Top