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 Silverlight Analytics package include the following:
The series classes of the respective controls 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 namespace
and add a new chart/control.
Edit the Marker and Line
Below, we will change an Individual series appearance (named isSeries in the examples below) of an Individuals control (named indControl in the
examples below). The process is similar for the other charts:
[Visual Basic]
' Modify the color and size of the marker
isSeries.Marker.Fill = new SolidColorBrush(Colors.Yellow)
isSeries.Marker.Radius = 7
' Modify the color and thickness of the series line
indControl.SeriesCollection(0).Stroke = new SolidColorBrush(Colors.Blue)
indControl.SeriesCollection(0).StrokeThickness = 3
[Visual C#]
// Modify the color and size of the marker
isSeries.Marker.Fill = new SolidColorBrush(Colors.Yellow);
isSeries.Marker.Radius = 7;
// Modify the color and thickness of the series line
indControl.SeriesCollection[0].Stroke = new SolidColorBrush(Colors.Blue);
indControl.SeriesCollection[0].StrokeThickness = 3;
In the chart below, you can test the code to see what the result will look like: