ChartDirector 7.0 (ASP/COM/VB Edition)

AngularMeter.addPointer2


Usage

addPointer2(value, fillColor [, edgeColor [, pointerType [, startOffset [, endOffset [, widthRatio ]]]]])

Description

Adds a new style pointer to the meter.

When compared to classical pointers (added by BaseMeter.addPointer), new style pointers are thinner. They are designed to be used with the new style meter cap (see AngularMeter.setCap2). They are also designed to have their base and tip movable in the radial direction, which means they can be detached from the center, and can even points from the outside inwards.

Arguments

ArgumentDefaultDescription
value(Mandatory)The value that the pointer points to.
fillColor(Mandatory)The fill color of the pointer.
edgeColor-1The edge color of the pointer. -1 means the edge color is the same as the fill color.
pointerTypeTriangularPointer2The pointer shape. Please refer to MeterPointer.setShapeAndOffset for the available shapes.
startOffsetNoValueThe distance between the starting point of the pointer with the meter center, expressed as a ratio to the scale radius. NoValue means the radius is automatically determined. Please refer to MeterPointer.setShapeAndOffset for more information about this argument.
endOffsetNoValueThe distance between the ending point of the pointer with the meter center, expressed as a ratio to the scale radius. NoValue means the radius is automatically determined. Please refer to MeterPointer.setShapeAndOffset for more information about this argument.
widthRatioNoValueThe width of the pointer relative to the default width. NoValue means the width is automatically determined.

Return Value

A MeterPointer object representing the pointer. You may use this object to fine-tune the appearance of the pointer.