SetPlotType Method

The SetPlotType method changes the plot type to the specified type.

Syntax

object.SetPlotType( plotType )

 

Parameter Type Description
plotType long required, grfPlotType

 

Remarks

After changing the plot type with SetPlotType, the plot object must be re-referenced.

Example

The following example changes a line plot to a horizontal bar chart and then sets the reference for the horizontal bar chart.

LinePlot.SetPlotType(grfHBarChart)

Dim Bar1 as Object

Set Bar1 = Graph.Plots.Item(1)

 

Used by: AutoBarChart object, AutoLinePlot object