Skip to content
  • There are no suggestions because the search field is empty.

Create bar, cluster, and stacked bar charts

Bar charts compare values across categories, such as the number of participants in each program. Cluster and stacked bar charts add a second grouping, so you can compare categories within categories.

Before you start:

  • Ensure your UpMetrics login is assigned an Org Admin or Editor role.
  • Confirm the data table you want to use is in Collect and ready for Advanced Analytics. For details, see Prepare your data for Advanced Analytics.

Choose the right bar chart

A bar chart compares one measure across a single grouping. A cluster or stacked bar chart breaks each bar down by a second grouping: cluster bars sit side by side, and stacked bars sit on top of each other. All three work with text (string) columns for count or distinct count, and with number and date columns.

Chart Use it to You need
Bar chart Compare quantitative data across a single categorical grouping At least two categories of data
Cluster or stacked bar chart Compare quantitative data across multiple categories At least two dimensions, with at least two categories in each

Bar charts

Create a bar chart

  1. From the Charts tab or your dashboard, click + in the upper right corner and select Chart. The Create a new chart screen displays.
  2. Select your data table from the Choose a data table drop-down list and the Bar Chart chart type, then click Create new chart. The chart builder displays.
  3. Enter a descriptive name for the chart at the top of the window, then click the X-axis field in the Data area. On the Simple tab of the My column dialog box, search for and select the field you want on the X-axis, then click Save.
    The column dialog box on the Simple tab, with the age_grouping column selected for the X-axis.
  4. Drag a column from the Columns list to the Metric field to choose what you're measuring. In the My metric dialog box, select a calculation from the aggregate drop-down list (it defaults to COUNT_DISTINCT), then use the pencil icon at the top of the dialog box to rename the metric to something easier to read. Click Save.
  5. Click Create chart. A simple bar chart displays in the preview area.
  6. (Optional) Adjust sorting, orientation, and other options (see Customization options below), then click Update chart to see your changes.
    The Customize tab with Bar orientation set to Horizontal under Chart Orientation, and a horizontal bar chart of participants by age group in the preview.
  7. Click Save. In the Save chart dialog box, enter or edit the name in the Chart name field, select a dashboard from the Add to dashboard drop-down list or enter a name for a new one (optional), then click Save or Save & go to dashboard.

Cluster and stacked bar charts

Create a cluster or stacked bar chart

Warning: If you start from a saved bar chart, select Save as… when you save. Otherwise your changes overwrite the original bar chart.

You can build a cluster or stacked bar chart from scratch or start from a saved bar chart. Either way, you add a second grouping, then choose whether the bars sit side by side (cluster) or on top of each other (stacked).

  1. Start your chart. To build from scratch, follow steps 1 to 4 in Create a bar chart. To start from a saved bar chart, click it on the Charts tab to open the chart builder.
  2. Drag a column from the Columns list to the Dimensions field to choose how to group the data, then click Create chart (new chart) or Update chart (saved chart). A cluster bar chart displays.
    The chart builder's Data tab with gender in the Dimensions field and Contribution Mode set to Row, and a horizontal cluster bar chart showing percentages in the preview.
  3. To stack the bars, click the Customize tab and select Stack from the Stacked Style drop-down list. To keep the bars side by side, leave it set to None.
    The Customize tab with Show Value selected and Stacked Style set to Stack, and a stacked bar chart showing percentage values in the preview.
  4. (Optional) Adjust contribution mode, sorting, and other options (see Customization options below), then click Update chart to see your changes.
  5. Click Save. In the Save chart dialog box, select Save as… if you started from a saved bar chart, edit the name in the Chart name field, select a dashboard from the Add to dashboard drop-down list or enter a name for a new one (optional), then click Save or Save & go to dashboard.
    The Save chart dialog box with Save as... selected, the Chart name field, the Add to dashboard drop-down list, and a note that a new chart will be created.

Customization options

Use these options to change how your bar chart is sorted, arranged, and labeled. After you change a Data tab option, click Update chart to see the result. Changes on the Customize tab display in the preview right away.

Option Where to find it Applies to What it does
X-Axis Sort By Data tab All bar charts Sorts the bars or groups along the X-axis by Average value, Category name, Maximum value, Minimum value, or Total value.
Contribution Mode Data tab, under Dimensions Cluster and stacked Shows percentages instead of raw numbers. Row makes the bars within each X-axis group add up to 100% (the more common choice). Series makes the bars across your X-axis groups add up to 100%. None shows raw numbers.
Bar orientation Customize tab, under Chart Orientation All bar charts Displays bars Vertical or Horizontal. Horizontal works best for categories with no natural order, like programs; vertical works best for ordered categories, like age ranges. When bars are horizontal, the X-axis and X-Axis Sort By fields on the Data tab are labeled Y-axis and Y-Axis Sort By.
Stacked Style Customize tab Cluster and stacked Stack stacks the bars; None keeps them side by side as a cluster bar chart.
Sort Series By Customize tab Cluster and stacked Sorts the bars within each group by Average value, Category name, Maximum value, Minimum value, or Total value.
Show Value Customize tab Cluster and stacked Displays each bar's value on the chart. Selecting it also shows an Only Total option; clear Only Total to show the value of each segment, not just each bar's total.
Legend Customize tab Cluster and stacked Shows or hides a legend and sets where it appears.

The Customize tab includes other formatting options as well.

Bar and cluster chart best practices

Keep these practices in mind when you design bar, cluster, and stacked bar charts:

  • Always start your axis at 0. Starting anywhere else can make the chart misleading.
  • Choose colors intentionally.
  • Sort your chart in a meaningful order, using X-Axis Sort By and, for cluster and stacked bar charts, Sort Series By.
  • Make the chart large enough that every bar and label is easy to read.
  • Use a horizontal orientation for categories with no natural order (for example, programs and their number of participants), and a vertical orientation for ordered categories like age ranges.
  • Filter out missing data, or label it clearly.
  • Relabel metrics so viewers know exactly what they're looking at.

Needs improvement: This chart uses a vertical orientation that doesn't suit categorical data, its axis starts at 1 instead of 0, the metric isn't relabeled, and some category labels can't be read.

A vertical bar chart with an unlabeled metric, an axis that starts at 1, and category labels that are cut off along the bottom.

Improved: The same data in a horizontal orientation, with value labels on each bar and the metric relabeled as Fellows.

A horizontal bar chart titled Fellows by Race, with value labels on each bar and the metric relabeled as Fellows.

Related articles