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

Multiple series in chart

3 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sivam
Top achievements
Rank 1
Sivam asked on 20 May 2010, 03:47 PM
Hi,

How can i have multiple series in chart? How can i create it programmatically? See attached images of my requirement. I don't find any sample on the web. Pls help me on how to proceed for this.

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 May 2010, 05:23 PM
Hello Sivam,

The Creating Chart Programmatically - more complex example help article shows in detail how to create a Chart item with multiple series programatically. Additionally you will have to set the chart1.PlotArea.DataTable.Visible  property to True to add a Data Table to the chart.
 

Regards,
Peter
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
Sivam
Top achievements
Rank 1
answered on 21 May 2010, 02:31 AM
Hi,

Thanks for your response. The example shown is fixed number of series. They have showed only 2 series. My need is n series. The number of series is dynamic at run time.

Thanks.
0
Steve
Telerik team
answered on 26 May 2010, 08:46 AM
Hi Sivam,

You can use a foreach loop to go through your data, parameters or whatever you use to specify how many series you would have and create the series in that loop. There is nothing specific about this approach.

Greetings,
Steve
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.
Tags
General Discussions
Asked by
Sivam
Top achievements
Rank 1
Answers by
Peter
Telerik team
Sivam
Top achievements
Rank 1
Steve
Telerik team
Share this question
or