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

Useing data which doesn't have the same step

2 Answers 14 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.
Jalal Eddin
Top achievements
Rank 1
Jalal Eddin asked on 11 Apr 2011, 09:52 AM
Dear All,

I need you help in drawing a line graph which has the following data:

X-Axis : 0.2 0.3 0.5 0.8 1.2
Y-Axis: 16 19 21 23 26

How can specify the x and y value of the added item.

Thanks

2 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 14 Apr 2011, 11:04 AM
Hello Jalal Eddin,
I am not quite sure I understand the concrete problem that you have with RadChart for WinForms. That is why, I created a simple example that demonstrates how you can add series items manually. In case the following code does not help you, please provide more details on the concrete that problem you face:
radChart1.Series.Clear();
 
ChartSeries series = new ChartSeries();
series.Type = ChartSeriesType.Line;
series.Items.Add(new ChartSeriesItem(0.2, 16));
series.Items.Add(new ChartSeriesItem(0.3, 19));
series.Items.Add(new ChartSeriesItem(0.5, 21));
series.Items.Add(new ChartSeriesItem(0.8, 23));
series.Items.Add(new ChartSeriesItem(1.2, 26));
 
radChart1.Series.Add(series);
 
radChart1.Refresh();

For additional information on series items, please refer to the following help topic - http://www.telerik.com/help/winforms/chart-undestanding-radchart-elements-series-items.html.

Greetings,
Tsvetie
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
0
Jalal Eddin
Top achievements
Rank 1
answered on 19 Apr 2011, 12:45 PM
Thanks Tsvetie, it's exactly what I want.

Jalal Eddin
Tags
Chart (obsolete as of Q1 2013)
Asked by
Jalal Eddin
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Jalal Eddin
Top achievements
Rank 1
Share this question
or