6.10.5 Overlapping Box Chart

Summary

All Origin graphs are created from a graph template. Templates serve to recall previous customizations but they also serve as a starting point for new customizations. This tutorial will show you how to create the following highly-customized box chart:

Minimum Origin Version Required: 2016 SR0

What you will learn

• Customize box plot settings
• Customize the axis dialog for box plots
• Merge and link several graphs
• Exchange X-Y axis

Steps

This tutorial is associated with <Origin EXE Folder>\Samples\Tutorial Data.opj.

Create the First Box Chart

1. Open the Tutorial Data.opj and browse to folder Overlapped Box Chart.
2. Activate workbook Book1B and Sheet1. Highlight columns B through F, then click Plot>2D: Box: Box Chart. A box chart is created.
3. Select and delete the legend object from the graph.
4. Double-click on any box in the plot to open the Plot Details dialog box. Go to the Group tab and set the Increment for Border Color to None (other elements should already be set to None).
5. Go to the Pattern tab and duplicate settings as shown below.
6. Go to the Spacing tab and set Gap Between Boxes (in%) to be 40.
7. Go to Box tab and duplicate settings as shown below.
8. Go to Percentile tab and clear all symbols. Click OK to close the dialog.

Create the Overlapped Box Chart

1. Right click the graph window title bar and select Duplicate. Repeat twice more. You should now have four identical graph windows.
2. Double-click any box in Graph2 to open Plot Details. Go to the Box tab and set the Coef value to be 0.95, Box Width (%) to be 15 and no Whisker.
3. Repeat step2 for Graph3 with Coef = 0.75, Box Width (%) = 40 and no whiskers .
4. Repeat step2 for Graph4 with Coef = 0.5, Box Width (%) = 70 and no whiskers.
5. Select Graph: Merge Graph Windows to open the merge_graph dialog box. Duplicate the settings as shown below and click OK.
6. Select Graph: Layer Management from the menu to open the dialog box.
7. Select Layer2 and go to the Link tab. Duplicate settings as shown below and click Apply.
8. Go to the Axes tab, clear all checkboxes and click Apply.
9. Repeat Steps 7~8 for layer3 and Layer4. Click OK to close the dialog box.

Do Further Customizations

1. Double-click the Y axis to open Axis Dialog box. Go to the Scale tab and duplicate settings as shown below for the Y axis (Vertical).
2. Go to the Tick labels tab and duplicate settings as shown below.
3. Go to the Grids tab and duplicate settings as shown below.
4. Go to the Line and Ticks tab, hold Ctrl key to select both Bottom and Left icons, then select Use Same Options for Bottom and Top, and change the line and ticks setting as below.
5. Go to the Tick labels tab again. Duplicate settings as shown below for X axis, after this, click OK to close the Axis dialog and apply all settings:
6. Right-click the Y axis title and select Properties.... Duplicate settings as shown below and click OK.
7. Activate Layer1 by clicking on the layer icon at the upper-left corner of the graph window. Select Graph: Exchange X-Y Axes.
8. Resize and/or reposition the graph layer as needed, so that everything fits comfortably within the graph window.