For the latest version of JMP Help, visit JMP.com/help.

1.
Select Help > Sample Data Library and open Oil Use.jmp.
2.
Select Graph > Graph Builder.
3.
Select Country and drag it to the Y zone.
Figure 4.7 Country Assigned to the Y Zone
4.
Select Production and Consumption and drag them to the X zone.
Figure 4.8 Country versus Production and Consumption
Figure 4.9 Side-by-Side Bars for Production and Consumption
Figure 4.10 Stacked Bars for Production and Consumption
7.
In the Variables list, right-click the column Consumption and select Transform > Negation.
This makes Consumption negative. A column called -Consumption appears in the list of columns. The column name is italicized to indicate that it is a virtual column. Use this column to plot the consumption bar in terms of negative values.
9.
Select -Consumption and drag it to just above the X axis. See Figure 4.11.
Figure 4.11 Stacked Bars for Production and Negative Consumption
Negative consumption (-Consumption) is plotted on the left in red, and Production is on the right in blue. Next, use the Consumption column as an ordering variable to sort the countries by their oil consumption.
10.
Select Consumption and drag it to the right of the Y axis. Do not drop the variable until a blue polygon appears. See Figure 4.12.
Figure 4.12 Polygon for Ordering Countries by Consumption
The levels of Country are now ordered by Consumption. The countries that consume the most oil appear at the top of the graph. You can also see each country’s oil production.

Help created on 3/19/2020