Box and Whisker Plot Control


Add a New Sample

This page describes how to add a sample to the box and whisker plot. The box and whisker control of the .Net Analytics is the following type:

The first step is to include the necessary namespaces.

Add a Sample

Below, we will add samples to a Box and Whisker chart (named bwPlot in the examples below):

[Visual Basic]
' Create new samples
bwPlot.Samples.Add(10)
bwPlot.Samples.Add(12)

' Build the subgroup
bwPlot.SubgroupSize = 2
bwPlot.BuildSubgroupMethod = BuildSubgroupMethods.BuildBySubSize

[Visual C#]
// Create new samples
bwPlot.Samples.Add(10);
bwPlot.Samples.Add(12);

// 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:

Box and Whisker plot with two samples in one subgroup