Requires Cairo to be installed
Shows a gauge like a car speedometer, which gauges some metric.
Any supported metric or unit can be used
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" />
Use size
to change the size.
Use max
and min
to set maximum and minimum values.
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" />
The gauge by default starts at the bottom left, this can be changed using start
, which is the number of degrees to rotate clockwise. The default start
is 143.
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" start="270"/>
The gauge is normally 254 degrees "long". This can be changed using length
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" length="90" />
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" length="180" />
There are 5 sectors by default. This can be changed with sectors
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" length="90" sectors="20" />
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" length="180" sectors="6" />
Various colours can be set, either as RGB, or RGBA values.
The following are available to change: background-rgb
, major-ann-rgb
, minor-ann-rgb
, needle-rgb
, major-tick-rgb
, minor-tick-rgb
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" background-rgb="255,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" major-ann-rgb="255,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" minor-ann-rgb="255,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" major-tick-rgb="255,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" minor-tick-rgb="255,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" needle-rgb="255,0,255"/>
Any colour that is completely transparent will disappear... this can be used to change the appearance of the widget quite a bit.
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" background-rgb="255,0,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" major-ann-rgb="255,0,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" minor-ann-rgb="255,0,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" major-tick-rgb="255,0,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" minor-tick-rgb="255,0,0,0"/>
<component type="cairo-gauge-round-annotated" metric="speed" units="mph" needle-rgb="255,0,255,40"/>