Create a bar chart of counts of unique values: clustered

Complete the following steps to create a bar chart that displays counts of unique values for one categorical variable, clustered by the values of another categorical variable. If your data are arranged differently, go to Choose a bar chart.

  1. Open the dialog box.
    • Mac: Choose Graphs > Bar Chart > Counts of unique values in a categorical variable > Clustered.
    • PC: Choose GRAPHS > Bar Chart > Counts of Unique Values > Clustered.
  2. In Categorical variables, enter the two columns of categories that you want to graph. The variable that you enter first becomes the outermost variable on the axis. For more information, go to Interpret the key results for Bar Chart and click Step 2: Compare groups within groups.

In the following worksheet, Flaws contains the paint flaws found in a sample of painted toys. Each row contains one paint flaw. Shift indicates the shift during which each paint flaw occurred. The graph shows the counts for each combination of paint flaw and shift. Flaws is the outermost variable on the axis.

C1 C2
Flaws Shift
Scratch 1
Scratch 2
Peel 3
... ...
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy