Add3DHistogram Method
The Add3DHistogram method adds a 3D XYY histogram to an existing 3D graph, equivalent to Graph | Add to Graph | Plot. Returns an Auto3DHistogram object.
Syntax
object.Add3DHistogram( worksheet, dataCol, xAxis, yAxis, id )
Parameter | Type | Description |
worksheet | String | required, the full path and file name of the data |
dataCol | Variant | optional, default = 1 (column A) |
id | Variant | optional, histogram name |
Remarks
3D graphs can only be added to other 3D graphs.
Example
This example shows how to add a 3D XYY histogram to an existing 3D graph.
Dim Graph2 As Object
Set Graph2 = Shapes.Add3DLinePlotGraph(GrapherApp.Path + "\samples\bar chart orientations.dat")
Graph2.Add3DHistogram(GrapherApp.Path + "\samples\histogram.dat")
Used by: AutoGraph collection