Combine series from different data sources into one.

Expand / Collapse
 

Combine series from different data sources into one.


QUESTION

How can data from two different database sources be combined into a single series?

ANSWER

The first step is to use the DataEngine to get your data into two separate series. Please see this kb for more info.

To combine the two series into one, the following code can be used:

[C#]

Series mySeries = new Series()
mySeries.Elements.Add(seriesOne.Elements);
mySeries.Elements.Add(seriesTwo.Elements);
Chart.SeriesCollection.Add(mySeries);
 

 
[Visual Basic]

Dim mySeries As New Series()
mySeries.Elements.Add(seriesOne.Elements)
mySeries.Elements.Add(seriesTwo.Elements)
Chart.SeriesCollection.Add(mySeries)
 



Rate this Article:
     

Add Your Comments


Comment require login or registration.

Details
Last Modified:Monday, May 15, 2006
Last Modified By: Support
Type: HOWTO
Rated 1 star based on 7 votes.
Article has been viewed 10,394 times.
Options