Skip to main content

Circular Gauges

  • 4 minutes to read

This document gives the detailed information on the Circular Gauge types shipped with the XtraGauges Suite, as well as detailing how they should be used in your application.

For details on other gauge types, refer to the corresponding topics of the Gauge Types section.

Circular Gauges Overview

Circular Gauge is a component that represents element’s values by visualizing them on a circular scale.

This control is appropriate for creating speedometers, tachometers, stopwatches, clocks, etc.

CircularGaugeSet

Circular Gauges all have Scales in form of arcs. These gauges can be used separately in your application or together with other gauge types.

The following is the list of circular gauge shape types:

  • full circular;
  • half-circular;
  • quarter-circular;
  • three-fourth circular;
  • wide circular.

The images below show some of these gauge types:

CircularGaugeTypes

You can access these shapes in the gauge Preset Manager.

CircularGauge Class

Circular Gauge is represented by an instance of the CircularGauge class. This object can be accessed as an item of the GaugeCollection object returned by the GaugeControlBase.Gauges property of the GaugeControl object.

See the following code:

CircularGauge gauge1 =  gaugeControl1.Gauges[0] as CircularGauge;

You can create a Circular Gauge control either at design time within Visual Studio or programmatically at runtime. The following examples demonstrate how it can be done:

Circular Gauge Elements

This section provides a brief overview of base gauge elements, as well as lists their main properties.

A Circular Gauge comprises numerous elements each of which is intended to perform a specific task.

The following image demonstrates a Circular Gauge containing a full set of its elements.

CircularGaugeElements1

The first base element of a circular gauge is a scale. Typically, a circular gauge can display the unlimited number of scales with tickmarks, ranges and labels.

A scale is represented by the ArcScale class.

To customize a gauge scale in your application, you need to specify the following properties:

After customizing a gauge scale, you may need to specify the gauge appearance. You can do it by adding a background layer to a scale.

This layer specifies the background of the gauge. It is represented by the ArcScaleBackgroundLayer class.

The following is the list of the background layer main properties:

Other gauge elements (needles, range bars, markers) are linked to a particular scale and rendered relative to this scale object.

For instance, a needle, linked to a specific scale, indicates the scale’s current value by spinning around the scale’s center (by default, the center of the gauge).

A needle is represented by the ArcScaleNeedleComponent class. It provides the following main properties:

For more information on gauge elements, see the Visual Elements section.