In this article
This step-by-step procedure describes how to create a stacked column chart as shown in the figure .below. In this example, the information about various qualities has been collected using a grid question as shown in the table below the chart .
Figure 1 - A Stacked Column chart
Figure 2 - Example of a Rating question
The table for this chart will be created on a new page in the report, called in this case Qualities.
Creating and Setting Up the Table
- Create a page in the report, and on the page, create an Aggregated Table.
- Double-click the new table object to enter the Table Designer.
- Drag the Qualities question object from the Data Source toolbox and drop it into the cell labeled Drop Rows Here in the Table Designer view, then click the Refresh button in the toolbar.
- Double-click the Qualities question object in the table, or right-click on the object and choose Properties.
- Check the Collapsed checkbox and set Default Stats to Avg.
- Click Apply and Close to apply your changes and close the Properties frame.
- Drag a Categories object from the Table Designer toolbar and drop it into the cell labeled Drop Columns Here in the Table Designer.
- Open the new Categories object Properties page, uncheck Totals and click Apply and Close.
- Double-click anywhere on the table or right-click and choose Properties.
- To display percentages (rather than counts) in the series, check Horizontal Percents.
- If you do not wish the vertical percents to show in your final table, uncheck Vertical Percents.
- Click Apply and Close in the Table Properties page, then click Save or OK as appropriate to return to the Page Editor for the Qualities page.
- Click Save to save your work.
Note: You must complete this procedure before you can create the chart.
Creating and Setting Up the Chart
Note: As the chart is based on the associated table, you must create the table before you can set up the chart. See above for details.
- On the report page, right-click in the location that you wish to add a Chart object, then go to the Insert Component > Chart command to create the chart.
- Double-click the new Chart object, or right-click and choose Design, to open the Chart Designer page.
- In the Report toolbox, drag the new Aggregated Table from the Qualities page and drop it into the area labeled Drop Table Here in the Chart Designer.
- In the Distribution field at the top of the page, select Horizontal Percent.
- In the Chart Style field, select Column2Dstacked.
- Uncheck Series in rows to flip the axes.
- Go to the Legend tab. Under the Style header select Column, under the Docking header select Lower, and under the Alignment header select Center.
- Click OK and then Save.
The Chart Designer view will automatically refresh and the table and a default chart will be displayed.
Your chart should appear as below .
Note: Colors and shadings will vary depending on the template used for the report.
Figure 3 - The chart nears completion
If you would like to add border lines around the series’ bars, go to the Series tab and under Line/Border Attributes apply a style and a width. The figure below shows the result of applying those properties . Note that this also adds a border to the colored boxes in the legend.
Figure 4 - Adding a border to the bar series
If you wish to add a chart title and labels on the X and Y axes, go to the Chart Title tab and type the desired text into the Title field.
If you wish to display labels along the X and Y axes, go to the Axes tab and make the appropriate settings.
The completed chart will appear as below .
Figure 5 - The completed Stacked Column chart