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

Multiple series on Y-axis

1 Answer 82 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.
John Kok
Top achievements
Rank 1
John Kok asked on 20 Dec 2009, 09:19 AM
I am programming in Visual Basic.

Let's say i have 4 arrays (a,b,c,d) with values in them.
I want to databind these arrays programmaticaly, to a datachart so that that have 4(or n) different series for item on the Y-axis.

Something like the attached image.

Can you help me ?

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Dec 2009, 06:44 AM
Hello John,

Unfortunately, RadChart does not support this scenario out of the box. You will need to create the ChartSeries and their items manually. Here is an example:

double[][] data = new double[][] {....};
 
ChartSeries series;
ChartSeriesItem chartSeriesItem;
foreach (var arr in data)
{
    series = new ChartSeries();
    foreach (var item in arr)
    {
         chartSeriesItem = new ChartSeriesItem();
         chartSeriesItem.YValue = item;
         series.Items.Add(chartSeriesItem);
    }
    chart.Series.Add(series);
}


Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart (obsolete as of Q1 2013)
Asked by
John Kok
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or