Adding labels along axis

Thread is closed for posting
2 posts, 0 answers
  1. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 07 May 2010 Link to this post

    Sorry for what is probably an elementary question. First day using Radchart.  I've been searching for an answer, but haven't found anything yet.

    I'm dynamically creating the charts because the # of charts will change. Here's the function I'm using:

        Protected Sub CreateChart(ByVal sQuestionId As StringByVal chtChart As RadChart) 
            Dim csSeries As New Telerik.Charting.ChartSeries 
            csSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName 
            chtChart.Skin = "Inox" 
            chtChart.SeriesOrientation = ChartSeriesOrientation.Horizontal 
                oCmd = New SqlCommand("Survey_ReportingByQuestionId", oConn) 
                oCmd.CommandType = CommandType.StoredProcedure 
                oCmd.Parameters.AddWithValue("@QuestionId", sQuestionId) 
                If oRdr.HasRows Then 
                    Do While oRdr.Read 
                        Dim csiSeriesItem As New Telerik.Charting.ChartSeriesItem 
                        csiSeriesItem.YValue = oRdr.Item("AnswerCount"
                        csiSeriesItem.Name = oRdr.Item("Answer"
                End If 
            Catch ex As Exception 
            End Try 
        End Sub 

    The "answers" are things like True/False, A/B/C/D, etc.  How can I use those to label the X axis instead of the default numbers that the chart generates?  The only way I've seen to do it is through databinding, which I'm not doing.

    Any help would be greatly appreciated!

  2. Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 12 May 2010 Link to this post

    Hello Matt,

    I think you are looking to create a categorical chart.

    Sincerely yours,
    Vladimir Milev
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top