AutoBarChart Object

The AutoBarChart object controls 2D bar chart settings.

Derived from: AutoPlot object (All methods and properties of AutoPlot apply to this object.)

Properties

BarOverlap

BarStyle

BarWidth

BaseMode

BaseValue

ColorCol

EnableSubBaseFill

ErrorBars

Fill

FixedWidth

ImageRepeat

Labels

LabelsAtBottom

Line

LoadImage

Orientation

RepeatColors

ShowColorTableLegend

Stacked

SubBaseFill

UseColorTable

UseFullImage

WidthCol

WidthColUnits

WidthType

WidthUsePU

XCol

YCol

Methods

LoadColorTable

LoadImage

SetPlotType

Example

The following script demonstrates how the AutoBarChart object is used.

Sub Main

 

 'Declares GrapherApp as an object

  Dim GrapherApp As Object

 

'Creates an instance of the Grapher Application object

 'and assigns it to the variable named "GrapherApp"

  Set GrapherApp = CreateObject("Grapher.Application")

 

 'Makes Grapher visible

  GrapherApp.Visible = True

 

 'Creates a plot document in Grapher and assigns

 'it to the variable named "Plot"

  Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

 

 'Declares Graph as an object

  Dim Graph As Object

 

 'Creates a graph and assigns it to the variable

 'named "Graph"

  Set Graph = Plot.Shapes.AddBarChartGraph(GrapherApp.Path + "\Samples\barchart.dat",1,2)

 

'Declare Bar1 as an object

Dim Bar1 As Object

 

'Set the bar chart to the Bar1 object

Set Bar1 = Graph.Plots.Item(1)

 

End Sub