Xbar Control
Show the Individual Values of a Subgroup
For the xbar control of the Silverlight Analytics package, you can show the individual values of a subgroup. The xbar chart/control of the Silverlight Analytics package are of the following types:
In order to add samples (observations) to these charts, the samples must be
added first to a subgroup.
The Xbar series class is:
The Xbar subgroup class is:
and the Xbar sample class is:
The following property is used for showing the individual samples:
The first step is to include the necessary namespace
and add a new chart/control, add a new series, add a new subgroup, and add new samples to the subgroup.
Show Individuals
Below, we will show the individual samples for a Xbar series (named xsSeries in the
examples below) and a Xbar control (named xbarControl in the
examples below). The individual samples are shown at the series level:
[Visual Basic]
' Show the individuals for the series
xsSeries.ShowIndividuals = True
' Another alternative is to show the individuals of the ith
(0 below) series
xbarControl.SeriesCollection(0).ShowIndividuals = True
[Visual C#]
// Show the individuals for the series
xsSeries.ShowIndividuals = true;
// Another alternative is to show the individuals of the ith
(0 below) series
xbarControl.SeriesCollection[0].ShowIndividuals = true;
In the chart below, you can test the code to see what the result will look like: