Time Series Controls


Edit a Series' Appearance

This page describes how to change the appearance of a series. You can also change the appearance of a sample and of a subgroup. The time series controls of the .Net Analytics package include the following:

The series classes of the respective charts 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 series level:

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

Edit the Marker and Line

Below, we will change an Individual series appearance (named isSeries in the examples below) of an Individuals chart (named indChart in the examples below). The process is similar for the other charts:

[Visual Basic]
' Modify the color and size of the marker - these properties actually call the PointMarker object
isSeries.PointColor = Color.Yellow
isSeries.PointSize = 7

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

' Access the series via the series collection and modify the line appearance
indChart.SeriesCollection(0).LineColor = Color.Blue
indChart.SeriesCollection(0).LineStyle = System.Drawing.Drawing2D.DashStyle.Dash
indChart.SeriesCollection(0).LineWidth = 2

[Visual C#]
// Modify the color and size of the marker - these properties actually call the PointMarker object
isSeries.PointColor = Color.Yellow;
isSeries.PointSize = 7;

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

// Access the series via the series collection and modify the line appearance
indChart.SeriesCollection[0].LineColor = Color.Blue;
indChart.SeriesCollection[0].LineStyle = System.Drawing.Drawing2D.DashStyle.Dash;
indChart.SeriesCollection[0].LineWidth = 2;

After the series has been added, samples or subgroups may then be added to the series. Adding samples and subgroups is discussed here and here respectively. The resulting chart should look similar to the following:

Individuals chart with edited marker