Preconfigurations Layered bar graph

Creates the complex graphic item PmiCanvas configured as layered bar graph.
This preconfiguration can be activated when creating a new graphic item and is included in the group: " / Trend, functions, chart".
This graphic item contains embedded PmiCanvas item named Dynamic. The item has the variable values0, values1, ... of the string type containing semicolon-separated values. The binding can be used to connect it to the measured value of the same data structure. The variables of the parent item are accessible in onDraw event by using the pEvent.GetParentVar().
In the PmiCanvas graphic item, there are variables minX, maxX, minY, maxY, spaceX and spaceY. These variables define the scale range in both x and y axes and also the offset of axes from left and bottom edge.
Additional configuration variables are located at the beginning of context itself, or at the beginning of the user method. The following items can be set:
- colorScale color of segments and scale descriptions
- nMajY number of main segments on y axis
- nMinY number of secondary segments (between two main segments) on y axis
- nDescPer defines the quantity of displayed descriptors of main segments (0 = no, 1 = every main, 2 = every second main)
- nMajX number of main segments on x axis
- nMinX number of secondary segments (between two main segments) on x axis
- colorArea background color of the graph rendering area
- colorGrid grid color
- nGridPer defines quantity of displayed horizontal/vertical grid lines (0 = no, 1 = every main, 2 = every second main)
- nTextSize scale description text size

The parent item contains other variables

- spaceX value defines the offset of y axis from the left edge
- spaceY value defines the offset of x axis from the bottom edge
The preconfiguration is set for 4 values composing colour layers of each bar. If you need to change the number of values (layers), then follow these steps:
- in variables of the parent item change the number of defined colors
- create or delete variable valuesN in the embedded item Dynamic
- on the Draw page of the embedded item make the change on the row marked by the comment // other values
These configurators can be set before the preconfiguration is created:
Range from minimum (y)Lower limit of the y axis
Range to maximum (y)Upper limit of the y axis
Bar namesNames of graph bars separated by semicolons
ColorColors in the HTML format (Working with colors description)separated by semicolons.
Emulation in the onRefresh eventEmulation in the graphic item event onRefresh
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice