The PieMap object contains the properties and methods of a pie map. Pie maps are created with the CreatePieMap method.
Derived from: Map object (All methods and properties of Map apply to this object.)
Properties
Example
This example references the PieMap object.
Sub main
'Creates an instance of the MapViewer Application
'object and assigns it to the variable named "mvApp"
Set mvApp = CreateObject("MapViewer.Application")
'Makes the application main window visible
mvApp.Visible = True
'Assigns the location of the samples folder
'to the variable "InPath"
InPath$ = mvApp.ApplicationFolder + "samples\"
'Creates a map document object, and assigns it
'to the variable named "Plot"
Set Plot = mvApp.Documents.Add(DocType:=mvDocPlot)
'Defines the variables for a pie map
Dim Variables(1 To 3) As Long
Variables(1) = 4
Variables(2) = 8
Variables(3) = 6
'Creates a pie map object and assigns it to the
'variable named "PieMap"
Set PieMap = Plot.CreatePieMap( Variables, BoundaryFileName:=InPath$+ _
"co2010.gsb", DataFileName:=InPath$+"co2010.dat", _
BoundaryFileOptions:="SecondaryIDField=2, Attribute1Field=1", _
PIDCol:=1)
End Sub