ChartDirector 6.0 (Ruby Edition)

LinearMeter.addZone


Usage

addZone(startValue, endValue, color [, label ])

Description

Adds a zone to the meter.

This method adds a TextBox to the meter. It configures the textbox position, size and color so that it looks like a zone on the meter scale.

Arguments

ArgumentDefaultDescription
startValue(Mandatory)The start value (the lower bound) for the zone.
endValue(Mandatory)The end value (the upper bound) for the zone.
color(Mandatory)The color of the zone.
label""The text to be put at the center of the zone.

Return Value

A TextBox object representing the label. This may be used to fine-tune the appearance of the label.