Time Series Controls


Edit a Sample's Appearance

The appearance of a sample can be changed so that it differs from the other samples (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 sample's appearance. The time series controls of the .Net Analytics package that are based on samples include the following:

The series classes of these respective charts are:

and the sample 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:

Additionally, the following marker properties are visible at the sample level:

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

Change a Sample's Marker

Below, we will change an Individuals sample appearance (named isSample in the examples below) of an Individuals series (named isSeries 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
isSeries.UseCustomPointMarkers = true;

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

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

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

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

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

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

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

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

Individuals chart with third sample appearance changed