Configuring Standard Deviation

Standard deviation is the measure of the variation or the dispersion of a set of data from the mean. It gives an idea of how spread out is the set of data from the mean.

In a box and whisker chart, along with the dataset seriesname, the legend also shows the icons for mean, mean deviation, standard deviation, quartile deviation, and the outliers of every data plot. This is a concept exclusively applicable to the box and whisker chart. Each dataset is highlighted by different colors to easily differentiate between them and their icons. The legend icons are interactive; you can click the icons to show/hide the associated values on the chart.

In this section, you will be shown how you can:

  • Show/hide the standard deviation icon in the legend

  • Show/hide the individual standard deviation values

  • Customize the standard deviation icon

  • Draw standard deviation connectors

  • Connect null data

Showing/Hiding the Standard Deviation Icon

A box and whisker chart with the standard deviation icon shown in the legend box looks like this:

FusionCharts should load here..

Given below is a brief description of the attribute used to show the standard deviation icon in the legend:

Attribute Name Description
showSD It is used to specify whether the icon representing the standard deviation value of the dataset will be shown in the legend. Setting this attribute to 1 will show the icon, setting it to 0 (default) will hide it.

The data structure needed to show standard deviation icon in the legend is given below:

...

Showing/Hiding Individual Standard Deviation Values

You can opt to show/hide the standard deviation for specific datasets.

A box and whisker chart with the standard deviation icon shown for a specific dataset in the legends box looks like this:

FusionCharts should load here..

To show/hide individual quartile deviation values, use the showSD attribute with the data object, that belongs to the dataset object.

The data structure needed to show the standard deviation icon for a specific dataset is given below:

...

Customizing the Standard Deviation Icon

Given below is a brief description of the attributes used to customize the standard deviation icon:

Attribute Name Description
sdIconSides It is used to specify the number of sides for the standard deviation icon. The default value of this attribute is 3.
sdIconColor It is used to specify the hex code of the color that will be used to render the standard deviation icon in the legend.
sdIconShape It is used to specify the shape for the standard deviation icon. This attribute can take one of the following two values: polygon or spoke. The default shape for a standard deviation icon is the triangle.
sdIconRadius It is used to specify the radius, in pixels, for the standard deviation icon.
sdIconAlpha It is used to specify the transparency for the standard deviation icon. This attribute takes values between 0 (transparent) and 100 (opaque).

Drawing Standard Deviation Connectors

For multiple data plots, you can draw a line to connect the standard deviation icons of each dataplot.

A box and whisker chart rendered with a standard deviation connector looks like this:

FusionCharts should load here..

Given below is a brief description of the attribute used to draw standard deviation connectors for the box and whisker chart:

Attribute Name Description
drawSDConnector It is used to specify whether a connector will be drawn to connect the standard deviation for multiple sets of data. Setting this attribute to 1 will draw the connector, setting it to 0 (default) will hide it. The color that is used to render the standard deviation icon is also used to render the connecting line.

The data structure needed to draw a standard deviation connector is given below:

...

Connecting Null data

If you use the showSD attribute with the data object and set it to 0, the chart will not display the standard deviation icon for that particular set of data. In this case, the missing standard deviation is considered as null data. Consequently, the standard deviation connectors will skip this null data and draw a continuous connector.

A box and whisker chart with the standard deviation null data connected looks like this:

FusionCharts should load here..

In the above chart, a connector is drawn connecting the standard deviation icons of the first and the third data plots, skipping the second data plot.

Given below is a brief description of the attribute used to connect null data using standard deviation connectors:

Attribute Name Description
connectNullData It is used to specify whether the null values will be skipped and a continuous connector line will be drawn for multiple sets of data. Setting this attribute to 1 will ignore the null values and draw a continuous connector line, setting it to 0 will not ignore the null values. This attribute is applicable for the standard deviation icon and all the other deviation icons.

The data structure needed to connect null data using standard deviation connectors is given below:

...

There! You have now seen how you can configure the standard deviation for the box and whisker chart.