This article describes how to show data from a summary table or crosstab:
as bar charts:
Requirements
A table with one or more rows or a crosstab
Method - Create a standard bar chart
- Select a table in the Report tree.
- From the toolbar, go to Show Data as > Bar and Column Charts > Bar chart.
- OPTIONAL: From the object inspector on the right, go to the Chart tab to make additional formatting updates, including changing colors, adding data labels, etc.
You can also modify the default chart color scheme using the Edit > Project Options > Customize > Charts. If you wish to make changes to the underlying data in one of the built-in chart objects, you have to first turn the chart back into a table (View > Show Data as > Table), make the desired changes, and then convert back to a chart. In general, these built-in charts have fewer available properties that can be modified compared to the charts created via the visualizations menu.
Method - Create an R-based bar chart
The Visualization menu contains a wide range of R-based charting options. The primary difference between the visualization menu charts and the built-in charts menu is that the built-in charts can only be created from an existing table, whereas the charts created using the visualization menu can be generated from a table, specific variables, or pasted data. The visualization charts also have more options for modifying the chart properties.
To create a bar chart using the visualization menu:
- Go to Create > Charts > Visualization > Bar > Bar.
- In the object inspector on the right, go to Inputs > DATA SOURCE > Output and select an existing table, or select a variable(s) from Variables. You can also click Paste or type data to paste data into the spreadsheet input tool.
- OPTIONAL: If you selected a variable(s) from the Variables dropdown, you can "cross" the bar visualization by another variable in the Groups dropdown.
- OPTIONAL: Go to the Chart tab in the object inspector for additional formatting options, including bar colors and data labels.