Creating intervals of numerical data
You can group numerical data into intervals that are then handled as categories using binning.
About this task
For example, if your data contains age information about a group of
people, you might want to arrange the ages into a smaller number of age groups
as illustrated below.

You decide how many bins the range should be divided into. When binning the data, a slider is shown which can be dragged to show the desired number of bins. The bar chart below is based on the same data as above but adjusted to show more bins.


You decide how many bins the range should be divided into. When binning the data, a slider is shown which can be dragged to show the desired number of bins. The bar chart below is based on the same data as above but adjusted to show more bins.

Before you begin
A numerical data column is selected on an axis.
Procedure
Results
Example
The table lists body heights and weights for 33 individuals, and each
individual's height is represented in the sorted bar chart.

By coloring the bars by weight, and binning the numerical values, it is easy to distinguish individuals in certain weight intervals. In the image below, the range is divided into 4 bins. Individuals that might weigh too much for their heights, can be spotted.


By coloring the bars by weight, and binning the numerical values, it is easy to distinguish individuals in certain weight intervals. In the image below, the range is divided into 4 bins. Individuals that might weigh too much for their heights, can be spotted.

For more examples, see Creating a histogram.
Parent topic: Grouping data
, and then select
