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 .Net Analytics package that are based on subgroups include the following:

The series classes of these respective charts are:

and the subgroup classes are:

The first step is to include the necessary namespaces 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 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);

Import from a Histogram Series

Below, we will import data to a Xbar chart (named xbarChart in the examples below) from a Histogram series (named hsSeries in the examples below). The process is similar for the other charts listed above:

[Visual Basic]
' Import data from Histogram series - need to specify the subgroup size (5 below)
xbarChart.SeriesCollection.Add(new XbarSeries(hsSeries, 5))

[Visual C#]
// Import data from Histogram series - need to specify the subgroup size (5 below)
xbarChart.SeriesCollection.Add(new XbarSeries(hsSeries, 5));

The Histogram chart, and the Xbar chart to which the data is imported, are shown below:

Histogram chart Individuals chart with data imported from histogram