29.10.2 Grouped Columns

Grouped Column Indexed Data.png

Contents

Data Requirements

You need to have at least one Y column as input data. Optionally, you can have an additional associated Y error column for each Y column. Another column provides grouping information.

Creating the Graph

Open the plot_gindexed dialog by one of three methods:

In the dialog that opens, select the input data range. Add at least one group column and determine where to put the calculated data. You can then generate a grouped column plot.

You can refer to the section below for the detailed dialog controls:

The plot_gindexed Dialog Box

To plot the graph from Summarized Data
Plot gindexed dialog box 01.png

In this example, all sales data will be plotted as bars against the groups(on X axis) selected in Group Columns.


To plot the graph from Raw Data
Plot gindexed dialog box 02.png

In this example, the mean values of height and weight data will be plotted as bars against the groups(on X axis) selected in Group Columns.

For Summarized Data

By default, the Data Form has been set to Summarized Data. This mean the input data is indexed data.

Data Column(s) This branch is used to specify the input data.
Group Column(s) Choose the grouping column(s).
Label Check this box to select a column or multiple columns as label column(s).

For the graph with multiple input data columns, if only one label column has been selected, all these plots share same label column; if the same number of label columns have been selected, each plot will has its label column in the order of selection.

Graph Arrangement
  • Multiple Data :Choose how to arrange the multiple input data.
    • Overlay on Same Graph: Plot the seleted input data as overlapping plots on the same graph layer.
    • Seperate Layers on Same Graph:Plot the seleted input data into seperate layers on the same graph layer.
    • Seperate Graphs:Plot the seleted input data on the seperate graph windows.
  • Split Panels by: Once this check box has been checked, you can select another grouping column to enable horizontal panels which show a grouped column plot for each grouping value seperately. Wrap Panels will be enabled, ticks and labels will be shown on alternate sides by default. When there are multiple columns selected, only one panel info label row will be shown on top, panel banner string will include all factors and separated by comma.
  • Split Pages by: Once this check box has been checked, you can select other grouping column(s) to split the input data and created grouped columns in different graph pages. Each page only plots the columns within the same page related group. Page related group info will be shown in layer title, separated by comma if there are multiple factors. Report graph sheet will list all pages.
Plot Type Specify the plot type, column plot, bar plot or scatter.
Stack Specify whether to stack the columns/bars when multiple input variables overlay in same graph. You can choose Side by Side, Stacked or 100% Stacked. This option is not avaiable for Plot Type being Scatter.
Graph Template Specify a user template if needed. By default, the Auto check box is checked and the built-in template GBOX is used.
Output Data Specify where to output the calculated data.
Output Graphs Specify which sheet the result graphs is output to.

In addition, you can preview the final graph in this dialog.

Note: In order not to sort the grouping range with default alphabetical order, set it(them) as categorical and modify the orders in the Categories tab.

For Raw Data

If you choose Raw Data for Data Form dropdown list, two options about statistics will appear to let you specify which statistic information of selected Input data will be shown as columns or bars and their error bars; and another option Stack Data will show up for Column and Bar plot type, which is used to specify the data to stack.

Other options are same as that of Summarized Data.

Examples

  1. Create a new workbook and click the Button Import Single ASCII.png button to import the Categorical Data.dat file under <Origin EXE Folder>\Samples\Graphing path.
  2. Highlight column B and select Plot > Categorical: Grouped Columns... from top menu to open the plot_gindexed dialog.
  3. In the Group Column(s) section, click the Add button Button Group List Add.png in the top right corner and add column D as the first grouping range, then similarly add column C as the second grouping range.
  4. Click OK to output the plot data and graphs into the newly generated sheets.
    Grouped Columns Indexed Data EX.png

For a more extensive tutorial, you can try Grouped Column with Error Bars and Data Labels. The tutorial addresses such things as Fill Pattern and the use and customization of tick label tables (seen in the above graph) for labeling the X axis.

Template

gColumn.otpu (installed to the EXE folder of Origin)

Notes

Color variations grouped column 750.png
For more information, see:

Version Information

Minimum Version: Origin 9.1 Last Update: Origin 2026