ChartDirector 7.1 (C++ Edition)

LinearMeter.addZone


Usage

TextBox *addZone(double startValue, double endValue, int color, const char *label = 0);

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.