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

Next Topic

Book Contents

Book Index

Creating a comparison bar chart

You can use a context variable to create a comparison bar chart that compares the results of the subject of the report to a benchmark value or the data for other subjects.

To set up the comparison chart you need to:

This example uses the Crocodile survey supplied with Snap to compare the average amount spent at one site with amounts spent at other sites.

  1. Click Chart button to display the Analysis Definition dialog for a chart.
  2. Select the chart style Bar Counts from the drop-down list.
  3. Type the names of the derived variable into the Analysis field, for example CComparison.
  4. Check the Transpose box.
  5. Select Means & Significances from the Calculate list and enter Q5 as the variable to use.

    Reference dialog chart q2 by q9

  6. Change to the Notes/Titles tab and click in the Title field
  7. Enter the title of your chart, using the [Insert] button to open the Variable field... dialog and insert the Name Aspect of Q5 and the Context Aspect of Q0 in the title.

    New vaariable field getting context aspect

  8. Clear the Chart Axis titles.

    Reference dialog titles with context and insert button

  9. Click [Apply] to see your chart.

    Comparison bar chart for crocodile cafe locations: no context

    It will have no data for the subject as no context has been set.

  10. Select File|Context Values to open the Context Values dialog.
  11. Double click the global context value to open it. This allows you to set the context to a specific value.
  12. Set the Variable to Q0 (the location) and the Value to 1. This sets the current context to Bristol.

    Global context variable dialog: location bristol

  13. Click Save button to save the context.
  14. Click 1 2 3  button on the chart toolbar to update the chart. The context information will appear.

    Comparison bar chart for crocodile cafe locations: Bristol

You can now use the Chart Designer to style your chart.

See Also

Setting up a derived variable to analyse your data