This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Displaying counts and percentage figures on a bar chart
Bar charts normally display one value per bar. You can choose whether this is:
- the count (number of respondents who chose that response)


- the percentage (number of respondents as a percentage of the total).


If you want to display both the counts and the percentage value, you need to pass in the counts and use the to calculate the percentages from the counts.
To ensure that the chart designer uses the number of respondents as its value for 100%, you must pass in a variable or variable code containing that value. This is done by creating a derived variable which has a code that is true for all respondents. This code then has a count value of the number of respondents.
You can then exclude this code from the final bar chart. You can only exclude codes from terms in the field that have not been transposed.
- Click
on the Snap toolbar to open the window. - Select the variable you wish to chart. This worksheet uses q2
- Click
on the window toolbar to create a copy of the variable. - Set the to . (The values in this variable are derived from the answers to .)
- Set the to to remind you that it is derived from .
- Set the to , so that you can have more than one code selected.

- Select to the column for the first code ().
- Enter .
- Move to the values column for the next code and enter .
- Set the value for code 3 to be and for code 4 to .
- Press [Tab] to create a new code.
- Name it and set the value to .

- Click
on the window toolbar to check the number of responses for the parts of your new variable. - You will get a message warning you that this will cause any changes to be kept. Click . The counts are displayed. The count for Hidden total should be the same as the base value in your table.

- Click
to save your variable.
Creating the chart
- Click
on the Snap toolbar to create a chart. - Set the style to and set the analysis to .
- Check .
- Click to display your chart.

- Double click on the Hidden total bar to open the dialog and check the box to stop the display of that bar.
- In this type of chart, each of the bar heights is a datapoint in a series. In the left hand pane, double-click to open it, then then select .

- Select the radio button as the in the tab. This specifies where the counts and percentage figures will be placed.
- Check and under the . This will display the counts and percentage figures at the end of the bar.

- Repeat for the other series that you wish to display (, and ).
- Click to display the new version of the chart.

- The percentage values are not correct as they have not been calculated using the value. Select in the left hand pane of the dialog. (If you have closed the chart designer, you can open it to the Y axis section by double-clicking the labelled line.)
- Select the tab and select the radio button.
- Select as the base. This uses the highest count as the number to calculate the percentages from. In this chart, it is the value in Hidden total, the same as the respondent base.

- Click .

The chart appears with an inappropriately precise Y-axis labelling. You can solve this problem by changing the display of the labels so they do not show decimal places. If you wish, you can also set it so that it goes up to 100% rather than 50%.
To change the way the labels on the y-axis are displayed
- Select under in the left hand pane of the dialog.
- Select the tab in the right hand pane.
- Select as the .

- If you wish to make the y axis maximum 100%, select in the left hand pane.
- Clear the box.
- Change the to .

- Click .
