Preconfigurations Bar (PmiCanvas) Horizontal - scale on top
Creates graphic item configured as bar displaying value of variable.
The created complex item contains two PmiCanvas
subitems. The outer item renders the scale and uses variables textSize
. Variable textSize
defines the font size of description text. Variables min
reprezent scale range. Variable space
defines margin of scale edge (and bar) from graphic item edges. Variable posAxis
defines the margin of scale from the bar.
Additional parameters of scale rendering can be modified at the beginning of DrawScale method script.
The inner item Bar
uses the variable val
. This variable controls the movement of the bar and can be connected with the measured value by the binding
This graphic item can use single-colour bar or bar with gradient. Colour(s) are defined at the beginning of DrawBar method script.
These configurators can be set before the preconfiguration is created:
|Measured value||Connection to measured value|
|Range from minimum||Start of range|
|Range to maximum||End of range|
|Colour gradient||Colour gradient from minimum to maximum|
|Bar colour||Bar colour|
|Starting bar colour||Starting bar colour|
|Ending bar colour||Ending bar colour|