Thread is closed for posting
2 posts, 0 answers
  1. Gerhard
    Gerhard avatar
    4 posts
    Member since:
    Jan 2012

    Posted 13 Mar 2012 Link to this post

    I want to switch over to the RADChart from a normal .net chart. The chart must be a bar chart with two series. It gets the XAxis Zfrom column 1 in the data table and the YValue from the second column.
    This is the code I used for the .net chart

    Me.Chart2.Series("MeterOne").XValueMember = "period"
            Me.Chart2.Series("MeterTwo").XValueMember = "period"
            Me.Chart2.Series("MeterOne").YValueMembers = "MeterOne"
            Me.Chart2.Series("MeterTwo").YValueMembers = "MeterTwo"
            Me.Chart2.ChartAreas(0).AxisX.Interval = 1

    This code works perfectly but I don't know how to do this with the RADChart.
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 15 Mar 2012 Link to this post

    Hello Gerhard,

    Since you are new to our control I suggest that you review the DataBinding section of our documentation as well as our demos with source code provided.
    Here are some tips:
    The way RadChart works is absolutely the same - you can bind your XAxis values to the first column of the DataTable and the YValue values to the second column.

    Kind regards,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top