This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Displaying counts and percentage figures on a bar chart

Bar charts normally display one value per bar. You can choose whether this is:

RD: Notes title tab showing satifaction ratings title

Chart style area 3d 12 colour

RD: bar chart showing counts selected

Chart style area 3d 12 colour

If you want to display both the counts and the percentage value, you need to pass in the counts and use the Chart Designer 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 Analysis field that have not been transposed.

  1. Click Variables window button on the Snap toolbar to open the Variables window.
  2. Select the variable you wish to chart. This worksheet uses q2
  3. Click Clone button on the Variables window toolbar to create a copy of the variable.
  4. Set the Type to Derived. (The values in this variable are derived from the answers to Q2.)
  5. Set the Name to V2Q2 to remind you that it is derived from Q2.
  6. Set the Response to Multiple, so that you can have more than one code selected.

    VW: Dervied variable window dialog showing ratings

  7. Select to the Values column for the first code (Daily).
  8. Enter q2=1.
  9. Move to the values column for the next code and enter q2=2.
  10. Set the value for code 3 to be q2=3 and for code 4 to q4=4.
  11. Press [Tab] to create a new code.
  12. Name it Hidden total and set the value to TRUE.

    VW: Dervied variable window dialog showing ratings

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

    VW: Dervied variable window dialog showing ratings

  15. Click Save button to save your variable.

Creating the chart

  1. Click Chart button on the Snap toolbar to create a chart.
  2. Set the style to Horizontal Bar 2D and set the analysis to v2q2.
  3. Check Counts.
  4. Click [Apply] to display your chart.

    Chart style area 3d 12 colour

  5. Double click on the Hidden total bar to open the Chart Designer dialog and check the Exclude series box to stop the display of that bar.
  6. In this type of chart, each of the bar heights is a datapoint in a series. In the left hand pane, double-click Series to open it, then Daily then select Datapoint Labels defaults.

    CD; cropped version of t-axis value scale tab showing  highlighted value

  7. Select the Above Point radio button as the Text Location in the Appearance tab. This specifies where the counts and percentage figures will be placed.
  8. Check Value and Percent under the Datapoint Label. This will display the counts and percentage figures at the end of the bar.

    CD; cropped version of t-axis value scale tab showing  highlighted value

  9. Repeat for the other series that you wish to display (Twice a week, Weekly and Monthly).
  10. Click [Apply] to display the new version of the chart.

    RW: hart xtra sampler

  11. The percentage values are not correct as they have not been calculated using the Hidden total value. Select Y Axis in the left hand pane of the Chart Designer dialog. (If you have closed the chart designer, you can open it to the Y axis section by double-clicking the labelled line.)
  12. Select the Scale Type tab and select the Percent radio button.
  13. Select Category Maximum as the Percent 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.

    CD; cropped version of t-axis value scale tab showing  highlighted value

  14. Click [Apply].

    RW: hart xtra sampler

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

  1. Select Axis Labels under Y Axis in the left hand pane of the Chart Designer dialog.
  2. Select the Format tab in the right hand pane.
  3. Select 0% as the Format Code.

    CD; cropped version of t-axis value scale tab showing  highlighted value

  4. If you wish to make the y axis maximum 100%, select Y Axis in the left hand pane.
  5. Clear the Automatic box.
  6. Change the Maximum to 1.

    CD; cropped version of t-axis value scale tab showing  highlighted value

  7. Click [OK].

    Chart style area 3d 12 colour

See Also

Chart elements

Setting up your own chart styles

Loading color styles

Saving a chart style

Chart Designer

Creating a Hi-Lo chart showing maximum and minimum values for a list of quantity variables

Using gap analysis to interpret importance with satisfaction

Creating a combination chart to display respondent means as points and bars

Using the Chart Wizard