The CreateLineGraphMap method creates a line graph map. Line graph map properties are edited with the returned LineGraphMap object.
Syntax
Object.CreateLineGraphMap( BoundaryFileName, DataFileName, DataTableName, BoundaryFileOptions, PIDCol, VarCol )
Parameter |
Type |
Description |
BoundaryFileName |
String |
optional; boundary file name |
DataFileName |
String |
optional; data file name |
DataTableName |
String |
optional; table name if a database file is used |
BoundaryFileOptions |
String |
optional; see Boundary File Options |
PIDCol |
Integer |
optional; primary ID column, column A equals 1 |
VarCol |
Integer |
optional; variable column, column A equals 1 |
Example
This example creates a line graph map of Colorado.
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)
'Creates a line graph map object and assigns it to the variable
'named "LineGraphMap"
Set LineGraphMap = Plot.CreateLineGraphMap( BoundaryFileName:= InPath$ + _
"co2010.gsb", DataFileName:= InPath$ + "co2010.dat", BoundaryFileOptions:= _
"SecondaryIDField=2, Attribute1Field=1", PIDCol:=1, VarCol:=5 )
End Sub
Used by: PlotDocument object