Outliers are those values which are numerically distant from the set of numbers provided. Outliers are indicative values which may occur by chance or by error for any set of data provided. Outliers are not included in the statistical calculation of the five summary numbers - the minimum and maximum values, the median value, and the lower and upper quartile values. Instead, they are placed as separate points on the chart.
In this section, you will be shown how you can:
Customize the outlier icon
Show outliers beyond the range of the y-axis
Customizing the Outlier Icon
A box and whisker chart with outliers looks like this:
In the above chart, outlier values are displayed as triangle icons above each data plot.
Given below is a brief description of the attributes used to customize the outlier icon:
||It is used to specify the outliers or the values greater than the maximum value from the data set provided. This attribute belongs to the
||It is used to specify the shape for the outlier icon. This attribute can take one of the following two values:
||It is used to specify the radius, in pixels, for the outlier icon.|
||It is used to specify the number of sides for the outlier icon. The default value of this attribute is
||It is used to specify the hex code of the color that will be used to render the outlier icon in the legend.|
||It is used to specify the transparency for the outlier icon. This attribute takes values between 0 (transparent) and 100 (opaque).|
The data structure needed to render a box and whisker chart with outliers is given below:
Showing Outliers Beyond the Range of the Y-axis
For the chart shown above, all outliers provided as values to the
outliers attribute are in the range of the y-axis scale. However, there can be instances where the outlier values lie outside the range of the y-axis. In this case, by default, such outlier values are not shown on the chart to maintain the visual integrity of the data plots.
A box and whisker chart with outliers beyond the range of the y-axis hidden looks like this:
The data structure needed to render the above chart is given below:
In the data above, you will see that the outlier values for Grade 3 are 72000 for male and 71000 for female. Therefore, the outliers for these values are not shown on the chart.
You can opt to show these hidden outlier values.
A box and whisker chart with outlier values shown on the chart looks like this:
Given below is a brief description of the attribute used to show all outliers on the box and whisker chart:
||It is used to specify whether outliers beyond the range of the y-axis will be shown on the chart. Setting this attribute to
The data structure needed to show all outlier values is given below:
There! You have now seen how you can configure outliers for the box and whisker charts.