This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
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.
- Click
to display the dialog for a chart. - Select the chart style from the drop-down list.
- Type the names of the derived variable into the field, for example .
- Check the box.
- Select from the list and enter as the variable to use.

- Change to the tab and click in the field
- Enter the title of your chart, using the button to open the . dialog and insert the of and the of in the title.

- Clear the titles.

- Click to see your chart.

It will have no data for the subject as no context has been set.
- Select to open the dialog.
- Double click the global context value to open it. This allows you to set the context to a specific value.
- Set the Variable to Q0 (the location) and the Value to 1. This sets the current context to Bristol.

- Click
to save the context. - Click
on the chart toolbar to update the chart. The context information will appear.
You can now use the Chart Designer to style your chart.