Add3DBarChart Method

The Add3DBarChart method adds a new 3D XYY bar chart to an existing 3D graph, equivalent to Graph | Add to Graph | Plot. Returns an Auto3DBarChart object.

Syntax

object.Add3DBarChart( worksheet, xCol, yCol, xAxis, yAxis, id )

 

 

Parameter Type Description
worksheet String required, the full path and file name of the data
xCol Variant optional, default = 1 (column A)
yCol Variant optional, default = 2 (column B)
id Variant optional, chart name

 

Remarks

3D graphs can only be added to other 3D graphs.

Example

This example shows how to add a 3D XYY bar chart to an existing bar chart.

Dim Graph2 As Object

Set Graph2 = Shapes.Add3DBarChartGraph(GrapherApp.Path + "\samples\bar chart orientations.dat")

Graph2.Add3DBarChart(GrapherApp.Path + "\samples\bar chart orientations.dat", 1, 3)

 

Used by: AutoGraph object

See Also

Add3DBarChartGraph