27.4.7 Stacked Bar Graph

Image058.png

Data Requirements

Select at least one Y column of values (or a range from at least one column). If there is an associated X column, X column supplies X values; otherwise, sampling interval of the Y column or row number is used.

Creating the Graph

Select required data.

From the menu, select Plot > 2D: Bar: Stacked Bar.

or

Click the Stacked Bar button on the 2D Graphs toolbar.

Image060.png

Template

BAR.OTP (installed to the Origin program folder).

Notes

  • For each X value, the associated Y values are represented as the length of a bar. Each bar has a fixed width. The bars, however, are stacked on each other so that the second bar segment begins at the end of the first bar. The stack of bars is centered at the associated X value. The X values plot along the vertical axis. To unstack the bars, select Graph: Offset Grouped Data in Layer: None.
  • To display a line when Y=0, select the Bar Graph Show Zero Values check box on the Graph tab of the Options dialog box (Tools: Options).