Skip to main content Link Menu Expand (external link) Document Search Copy Copied

VerticalGauge

VerticalGauge displays a vertical bar chart using the value of the specified attribute and the limits supplied to calculate the height of the bar.

Example:

<gauge>
    <name>cltvertical</name>
    <type>VerticalGauge</type>
    <x>70</x>
    <y>91</y>
    <w>15</w>
    <h>100</h>
    <min>0</min>
    <max>250</max>
    <initial>0</initial>
    <attribute>clt</attribute>
    <colours_script>
        function colourname : string;
        begin
            if (clt &#60; 60) then
                Result := 'blue'
            else
            if (clt &#60; 95) then
                Result := 'greengreen'
            else
            if (clt &#60; 105) then
                Result := 'yellowyellow'
            else
            Result := 'redred'
        end; 
        begin 
        end.
    </colours_script>
    <visible>1</visible>
</gauge>
Attribute Mandatory? Value Type Description
x Yes Integer The x coordinate of the bottom left of the gauge
y Yes Integer The y coordinate of the bottom left of the gauge
w Yes Integer The width of the bar chart in pixels
h Yes Integer The height of the bar chart in pixels
min Yes Integer The minimum value of the attribute. This is used to set the zero height of the bar.
max Yes Integer The maximum value of the attribute. This is used to set the full height position of the bar.
initial Yes Integer The initial value to be used before any data is received from the ECU. In reality you will probably never see this value unless you have incorrectly specified the attribute.
attribute Yes String The name of the attribute you want to base the gauge on
visible No Integer 1 or 0 Defines whether the bar is shown when the page is first loaded.
colours No String Specifies the colour of the bar. See the colour definitions page for further details
colours_script No String Defines a script that can be used for determining the colour. For example, you might want a temperature bar to go red if the the temperature goes above a certain value. If the colours_script is defined, then the colours attribute is ignored
blocksize No Integer The block size enables the bar char to be split into chunks of pixels. This reduces its resolution so it doesn’t move around with small changes in the attribute’s value.