AddPieChart Method

The AddPieChart method creates a new 2D pie chart. Returns an AutoPieChart object.

Syntax

object.AddPieChart( worksheet, dataCol, labelsCol, id )

 

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

 

Example

This example shows how to create a pie chart.

Shapes.AddPieChart(GrapherApp.Path + "\samples\pie1.dat")

 

Used by: AutoShapes collection