This article describes how to create a bar graph with the axis in the middle of the visualization (negative values/attributes on the left of the axis)
For example, the table below contains positive, neutral, and negative attributes:
Which can then be displayed as a bar chart visualization with the axis in the middle and positive and negative attributes shown on either side of the axis:
- A Nominal Multi-Grid or Ordinal Multi-Grid variable set with at least one positive and one negative attribute, such as "like" and "dislike".
To create this chart, there are 2 steps:
- Recode your rating categories so the negative ratings have negative values, and the positive ratings have position values. To do so, select the variable or variable set in the Data Sets tree, and then select the Values button in the DATA VALUES section of the Object Inspector. Update the values as in the following example, assigning negative values to the negative attributes and positive values to the positive attributes:
- Click OK.
Next you will need to combine the Negative and Positive values into one category each.
- Drag the variable onto the page to create a table.
Click the table and select the column labels you wish to combine while holding down ctrl or shift, then right-click and select Combine. Here, we will select Hate, Dislike, and Neither like nor dislike.
Repeat the previous step for the Love and Like categories.
With the table selected, in the object inspector go to Inputs > OUTPUT > Visualization > Bar > Stacked Bar with Tests.
OPTIONAL: You can further customize the look of the chart via the Chart tab in the object inspector.