Complete the following steps to create a bar chart that displays the summarized data for groups that are defined by values in a categorical variable, clustered by the values of a different categorical variable. If your data are arranged differently, go to Choose a bar chart.
In the following worksheet, Count is the summary variable and contains the number of customers who prefer a type of chocolate. Preference and Gender are the categorical variables and indicate the type of chocolate and gender that correspond to each count. For example, row 1 indicates that 87 men prefer dark chocolate. The graph shows the counts for men and women, clustered by preference. Preference is the outermost variable on the axis.