You can also create gauges with the
PieChart control, the library provides the
it is a helper class that build a collection of
PieSeries<ObservableValue> based on the properties
we specify, take a look at the following sample.
You could also use the
PieChart.InitialRotation property to customize the angle where the gauge starts.
Now trying the
GaugeBuilder.OffsetRadius, this property defines an offset in pixels from the
InnerRadius of the
pie slice shape to the actual start of the shape:
Notice that there is a similar property the
GaugeBuilder.BackgroundOffsetRadius will do the same effect
but in the background slice (gray one).
You can also compare multiple series in the same gauge, the following sample combines adds 2 more series and
LabelFormatter property to customize the labels.
The max angle property defines the maximum angle the gauge can take, the range goes from 0 to 360 degrees (full circle),
by default the value is 360, we can avoid the overlap of the green series in the previous sample if we reserve a space for
the labels, in this case we will set the
MaxAngle to 270 degrees, this way we will have space for the labels to render
in the last 90 degrees of our circumference.