Preconfiguration "Polar chart"
Creates the
PmgCanvas object configured as polar chart.
This preconfiguration can be activated when
creating a new Pmg object.
This preconfiguration is included in the
"/ Chart, functions" group.
This object contains embedded
PmgCanvas object named "
Dynamic". The item has the
variable values and
arcus of the
String type containing values separated by semicolon. It is posible to connect it to the measured value of the same data structure by
data binding. The variables of the parent
Pmg object are accessible in the
onDraw event using the
pEvent.GetParentVar(sName).
In order to draw the chart correctly the angles (range 0 - 360) are stored in the
arcus variable in ascending order and the corresponding values are in the
values variable.
Additional configuration variables are located at the beginning of
context itself, or at the beginning of designer method. The following items can be set:
nScaleCount - The number of circles (values) of the scale
nFontSize - Font size of the scale descriptors
colorScale - scale circle(s) color
colorText - scale descriptor color
posAngle0 - Chart orientation when angle is 0°
sColorLine - chart line color
sColorFill - chart area color
These configurators can be set before the preconfiguration is created:
Object name | Name (identifier) of the Pmg object. It is used for obtaining the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and first character must not be a number. |
Range from minimum | Start of the meter range |
Range from minimum | Start of the meter range |
Directions (angles) | Directions (angles) values order |
Values | Default values (values) |
Chart orientation - value of angle 0° will be: | Chart orientation - value of angle 0° will be drawn from the centre. Value of the posAngle0 variable in Dynamic subobject on the "Draw" tab of the "DrawGraph" method.
Up
Right
Down
Left |
Data emulation in control variable binding | Emulated data will be generated in the control variable |
---|