Here's some code for a needle in a round gauge (minus the bitmap name for the needle and the code driving it, as these are irrelevant in this context).
I also can't post the associated bitmaps since they are from a payware gauge.
FloatPosition - Position of the axis on the background bitmap
Axis - Position of the axis on the needle's bitmap
PointsTo - Defines the starting point for the offset angles; in this case north = up; you can also set this to east, south or west, but it'll make things more complicated
NonLinearityEntry - Pairs the result of the evaluation of the script (i.e. gauge variable or mathematical operation) to an offset angle from the intial starting point
Depending on the layout of the needle bitmap (pointing up, down, left, right, etc.), you might have to work with angles that may seem fairly illogical.
In my example, the needle bitmap is pointing right (i.e. O===> ) by default, but since I defined "north" (=up) as the 0° position, I'll have to rotate the bitmap by 62° around the axis to make it point to the "0" position on the background bitmap.
Since the positions on the background are fairly evenly spaced, I can get away with incrementing the rotation angle by 30° for every 10 increments in the expression result.
Code:
<Element>
<FloatPosition>88,90</FloatPosition>
<Image Name="[bitmap].bmp">
<Luminous>True</Luminous>
<Axis>29,30</Axis>
</Image>
<Rotation>
<PointsTo>NORTH</PointsTo>
<Expression>
<Minimum>0.000</Minimum>
<Maximum>100.000</Maximum>
<Script>[some code]</Script>
</Expression>
<NonlinearityTable>
<NonlinearityEntry><ExpressionResult>000.000</ExpressionResult><Degrees>062</Degrees></NonlinearityEntry>
<NonlinearityEntry><ExpressionResult>010.000</ExpressionResult><Degrees>092</Degrees></NonlinearityEntry>
<NonlinearityEntry><ExpressionResult>020.000</ExpressionResult><Degrees>112</Degrees></NonlinearityEntry>
<NonlinearityEntry><ExpressionResult>030.000</ExpressionResult><Degrees>142</Degrees></NonlinearityEntry>
...
<NonlinearityEntry><ExpressionResult>100.000</ExpressionResult><Degrees>312</Degrees></NonlinearityEntry>
</NonlinearityTable>
</Rotation>
</Element>