Time Series Controls


Import Data from Other Charts

Subgroups and series can be imported from other chart types. This is supported through their constructors. The time series controls of the Silverlight Analytics package that are based on subgroups include the following:

The series classes of the respective controls are:

and the subgroup classes are:

The first step is to include the necessary namespace for the controls, add a new series, add new subgroups, and add new samples to the subgroups.

Import from a Range Subgroup

Importing data should generally be done at the same level: sample-to-sample, subgroup-to-subgroup, and series-to-series. Below, we will import data to a Xbar subgroup from a Range subgroup (named rsSubgroup in the examples below). The process is similar for the other charts listed above:

[Visual Basic]
' Import data from Range subgroup
Dim xsSubgroup As New XbarSubgroup(rsSubgroup)

[Visual C#]
// Import data from Range subgroup
XbarSubgroup xsSubgroup = new XbarSubgroup(rsSubgroup);

In the chart below, you can test the code to see what the result will look like:

Get Microsoft Silverlight