Preconfiguration "Bar graph with default x-axis"

Creates the PmgCanvas object configured as bar graph.

This preconfiguration can be activated when creating a new Pmg object and is included in the group: " / Chart, functions".

This object contains embedded PmgCanvas object named "Dynamic". The item has the variable values of the String type containing values separated by semicolon. It is possible to connect it to the measured value of the same data structure by data binding. The variables of the parent object are accessible in the onDraw event by using the pEvent.GetParentVar().

In the parent PmgCanvas object, there are variables titles, colors, textSize, min, axis and max.
Variable titles and colors are of the String type containing values separated by semicolon.
Variable textSize variable specifies the text size of graph legend.
Variable min and max specify the value scale range.
Variable axis specifies the starting value of bars rendering.

Additional configuration variables are located at the beginning of context itself, or at the beginning of designer's method. The following items can be set:
- nTicks number of scale segments in the y
- nSpaceY offset of x axis from the bottom edge
These configurators can be set before the preconfiguration is created:
Object nameName (identifier) of the Pmg object. It is used to obtain 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, empty string, spaces and the first character must not be a number.
Range from minimum (y)Low limit of the y axis
Value of default x-axisThe value between min and max used as the default value for rendering the graph bars
Range to maximum (y)High limit of the y axis
Bar namesThe names of graph bars separated by semicolon
ColorColors in the HTML format (Working with colors description)separated by semicolon.
Values (y)Base values on the y axis separated by semicolon
Data emulation in control variable bindingEmulated data will be generated in the control variable

Pm8.03.13: Created
PROMOTIC 9.0.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice