This article describes how to create a clustered bar chart from an existing table like this:
To a chart like this:
Requirements
At least one of the following:
- A table with at least two columns and one row.
- Two variables.
Method 1 - via the visualization menu
- Select Visualization > Bar > Bar.
- Click on the page where you'd like to place the visualization.
- Under Data > Data Source > Data select the table that you want to base the chart on. Alternatively, in Data > Data Source > Variables select that data that you would like to be in the rows.
- OPTIONAL: If using Variables in Step 3, select the secondary variable to use as your cluster in Data > Data Source > Groups.
- OPTIONAL: Under Chart make additional adjustments to change the appearance of the visualization.
- Click Calculate and/or ensure that Automatic is checked.
Method 2 - using an existing table
- Select the table.
- From the object inspector, go to Visualization > Bar > Bar.
- OPTIONAL: Under Chart make additional adjustments to change the appearance of the visualization.
- Click Calculate and/or ensure that Automatic is checked.
Options
The following is an explanation of the options available in the Object Inspector for this specific visualization. Refer to Visualization Options for general chart formatting options.
Chart
Appearance
- Gap between bars - Specify the amount of space between bars as proportion of the available space. Values can range from 0 (no gaps) to 0.99 (bars are shown as lines).
Data Labels
- Minimum threshold to show data labels - Data labels will be hidden in Stacked charts for values which are smaller than this proportion of the total range.
Note
Important information about editing captions:
Visualization caption edits may not be retained when a visualization with a nested table is switched back to table. Normally, this only occurs when you double-click the caption and edit the text directly. As a workaround, we recommend using Properties > CAPTION > Edit caption to edit your captions.
Next
How to Create a Bar Chart from a Table
How to Create a Stacked Bar Chart
How to Create Several Bar Charts Using Small Multiples
How to Customize the Color of a Single Category in a Bar, Column, or Pyramid Visualization
How to Apply a Gradient Palette to a Bar, Column, or Pyramid Visualization