All Controls
Expand/Collapse Statistics in Statistics Box for a Series
This page describes how to expand/collapse the statistics in the statistics box of the charts/controls for a series. The statistics box is of the following type:
The following property is used for expanding/collapsing the statistics of a series:
The statistics box holds the statistics of both the series and
limit ranges (multiple/split limits). You can
show or hide statistics that appear in the
statistics box.
The first step is to include the necessary namespace
and add a new chart/control.
Expand/Collapse the Statistics
Below, we will expand and collapse the statistics for a BoxWhiskSeries (named bwsSeries). The process is similar for the other charts:
[Visual Basic]
' Expand the statistics for the series
bwsSeries.StatisticsAreExpanded =
True
' Collapse the statistics for the series
bwsSeries.StatisticsAreExpanded =
False
[Visual C#]
// Expand the statistics for the series
bwsSeries.StatisticsAreExpanded = true;
// Collapse the statistics for the series
bwsSeries.StatisticsAreExpanded = false;
In the chart below, you can test the code to see what the result will look like: