This is a migrated thread and some comments may be shown as answers.

XValueMember

1 Answer 157 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gerhard
Top achievements
Rank 1
Gerhard asked on 13 Mar 2012, 01:18 PM
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.

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 15 Mar 2012, 10:31 AM
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,
Evgenia
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Chart (obsolete as of Q1 2013)
Asked by
Gerhard
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or