Time Series Controls


Edit a Subgroup's Appearance

The appearance of a subgroup can be changed so that it differs from the other subgroups (see here how to change the appearance for a series). One example where this is seen is with the run rules. This page describe how to change a subgroup's appearance. 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:

Both a series and a sample or subgroup include a marker for the appearance of a point. The series marker applies to all points on the chart while the sample or subgroup marker is for an individual point. The marker is of the following type:

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.

Change a Subgroup's Marker

Below, we will change a Xbar subgroup appearance (named xsSubgroup in the examples below) of a Xbar series (named xsSeries in the examples below). The process is similar for the other charts listed above:

[Visual Basic]
' Use custom point markers - each sample will have a different marker
xsSeries.UseCustomPointMarkers = true;

' Change the color of the sample
xsSubgroup.CustomPointColor = Color.Yellow

' An alternative is to access the ith (2 below) subgroup directly from the series
xsSeries(2).CustomPointSize = 7

' Modify the PointMarker object directly to change the border color
xsSeries(2).CustomPointMarker.BorderColor = Color.Red

[Visual C#]
// Use custom point markers - each sample will have a different marker
xsSeries.UseCustomPointMarkers = true;

// Change the color of the sample
xsSubgroup.CustomPointColor = Color.Yellow;

// An alternative is to access the ith (2 below) subgroup directly from the series
xsSeries[2].CustomPointSize = 7;

// Modify the PointMarker object directly to change the border color
xsSeries[2].CustomPointMarker.BorderColor = Color.Red;

After the subgroups have been added and the appearance of the third subgroup changed, the resulting chart should look similar to the following:

Xbar chart with third subgroup appearance changed