AddHistogram Method

The AddHistogram method adds a 2D histogram to an existing 2D graph, equivalent to Graph | Add to Graph | Plot. Returns an AutoHistogram object.

Syntax

object.AddHistogram( worksheet, dataCol, xAxis, yAxis, id )

 

Parameter Type Description
worksheet String required, full path and file name of the data
dataCol Variant optional, default = 1 (column A)
id Variant optional, histogram name

 

Remarks

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

Example

This example shows how to add a histogram.

Graph1.AddHistogram(GrapherApp.Path + "\samples\histogram.dat")

 

Used by: AutoGraph object

See Also

AddHistogramGraph