Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfigurations Arrow of current value above the bar with graphic representation of value limits (PmiCanvas)

The created complex item contains two PmiCanvas subitems. The outer item renders the scale and uses variables max, min, barX, barY and colors. Variables min and max reprezent scale range. Variables barX and barY represent the dimension between the upper left edge of the bar and the upper left edgeof the item. Variable colors defines the colour range of values (limits).

Additional parameters of scale rendering can be modified at the beginning of DrawScale method script.

 
The inner item Dynamic has the variable val. This variable controls the movement of the arrow along the scale. It can be binded to the measured value by binding.
 
Examples of limits and colours settings in the colors variable:
Example:
Whole bar in a single colour
#c0c0c0
(minimum - 20) = red, (20 - maximum) = gray
#ff0000;20;#c0c0c0
(minimum - 20) = red, (20 - 30) = yellow, (30 - 70) = gray, (70 - 80) = yellow, (80 - maximum) = red
#ff0000;20;#ffff00;30;#c0c0c0;70;#ffff00;80;#ff0000
These configurators can be set before the preconfiguration is created:
Measured valueConnection to measured value
Range from minimumStart of range
Range to maximumEnd of range
Colour representation of value range
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice