BarMap Object

 

The BarMap object contains the properties of a bar map. Bar maps are created with the CreateBarMap method.

 

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

 

Properties

AllowNegativeBar

Bar3DFace

BarColorForText

BarColorForTextLead

BarPosOffsetType

BarPosXOffset

BarPosYOffset

BarSideForDataText

Baseline

BaselineColor

BaselineFill

BaseVal

DataTextToLeft

DrawDataText

Fill

Font

GlobalData

HorizontalBar

LeadSegToBars

LeadSegToText

Line

Mark

MarkInc

MaxHeight

MinHeight

PIDCol

Proportional

Shading

SideFill

Stack

TextLeadArrowScale

TextLeadEndArrow

TextLeadLine

TextLeadStartArrow

Thickness

Uni3DSideFaceFill

VarCol

Width

 

Example

This example creates a bar map of Indiana.

 

Sub Main

'Declare the variable that will reference the application

 Dim mvapp As Object

 

'Creates an instance of the MapViewer Application object

'and assigns it to the variable named "mvapp"

 Set mvapp = CreateObject("MapViewer.Application")

 

'Make MapViewer visible

 mvapp.Visible = True

 

'Declare Plot as Object

 Dim Plot As Object

 

'Creates a new map window

 Set Plot = mvapp.Documents.Add(mvDocPlot)

 

'Declare BarMap as object

 Dim BarMap As Object

 

'Create a bar map

 Dim pVarCols(2) As Long

 pVarCols(0) = 4 : pVarCols(1) = 5

 Set BarMap = Plot.CreateBarMap(pVarCols(), _

 BoundaryFileName:=mvapp.ApplicationFolder + "\Samples\in2010.gsb", _

 DataFileName:=mvapp.ApplicationFolder + "\Samples\in2010.dat", _

 PIDCol:=1)

End Sub