Box and Whisker Plot
Control
Build Subgroups
This page describes how to build subgroups the
box and whisker plot. The box and whisker control of the .Net Analytics is the following type:
The subgroups can be built for the box and whisker plot using the following methods:
- Subgroup Size: dependent upon the number of samples in the chart
- Code: a parameter of samples
The first step is to include the necessary namespaces.
Add Samples and Build Subgroups
Below, we will add samples to a Box and Whisker chart (named bwPlot in the
examples below) and build the subgroups using subgroup size. We will add six and samples and use a subgroup size of 2 to get three subgroups:
[Visual Basic]
' Create new samples
bwPlot.Samples.Add(10)
bwPlot.Samples.Add(12)
bwPlot.Samples.Add(13)
bwPlot.Samples.Add(15)
bwPlot.Samples.Add(9)
bwPlot.Samples.Add(8)
' Build the subgroup
bwPlot.SubgroupSize = 2
bwPlot.BuildSubgroupMethod = BuildSubgroupMethods.BuildBySubSize
[Visual C#]
// Create new samples
bwPlot.Samples.Add(10);
bwPlot.Samples.Add(12);
bwPlot.Samples.Add(13);
bwPlot.Samples.Add(15);
bwPlot.Samples.Add(9);
bwPlot.Samples.Add(8);
// Build the subgroup
bwPlot.SubgroupSize = 2;
bwPlot.BuildSubgroupMethod = BuildSubgroupMethods.BuildBySubSize;
After the samples have been added, and the subgroups built, the resulting
chart should look similar to the following: