Scales

  • 3 minutes to read

This topic provides basic information on gauge scales (circular and linear), and explains how scales can be accessed and customized at design time.

A scale is the fundamental element of analog gauges (circular and linear) because all other elements can be placed on it.

There are two types of scales in analog gauges: Arc Scale and Linear Scale. Each scale type defines the gauge layout and appearance.

Arc Scale

This scale is used in the CircularGauge control. It is represented by the ArcScale class object.

An Arc Scale has different shape types: full circular, half-circular, quarter-circular, three-fourth circular and wide circular.

The following image shows some of these types.

CircularGaugeSet

For more information, see the Circular Gauges Types topic.

An Arc Scale consists of tickmarks (both major and minor) and scale labels. A list of scale items can be extended by adding static and dynamic gauge elements (so called Value Indicators) into the arc scale.

In contrast to dynamic elements, static elements cannot be animated.

The following is the list of static gauge elements:

  • tickmarks;
  • custom and scale labels;
  • ranges;
  • layers;
  • spindle cap.

The dynamic gauge elements (value indicators) include:

  • needles;
  • markers;
  • range bars.

An Arc Scale can contain numerous scales within a circular gauge.

The image below demonstrates a typical circular gauge containing two arc scales with a background layer, tickmarks, markers, ranges, needle, and a scale custom label inside it.

CircularScale

For more information, see the Circular Gauge Elements topic.

Linear Scale

This scale is intended to be used with the LinearGauge. An instance of a linear scale is represented by the LinearScale object.

The following linear scale shape types are available in the Gauges component: vertical and linear.

LinearScaleShapes

To learn more, see the Linear Gauges Types topic.

As you can see from the image above, a linear gauge can contain numerous scales.

Like an arc scale, all elements of a linear scale can be divided into two groups: static and dynamic (Value Indicators).

A linear scale contains the following static elements:

  • tickmarks;
  • custom and scale labels;
  • ranges;
  • background and effect layers.

Level bar, markers and range bars can be animated on a linear scale because they belong to dynamic gauge elements.

The following image demonstrates a linear scale with a level bar, tickmarks, three ranges, background layer inside it.

OneScaleLinearGauge

To learn more, see the Linear Gauge Elements topic.

Scale Customization

The Gauge scale can be accessed at design time using a scale designer.

To load Scales - Element Designer, locate the Gauge control's smart tag and click Customize Gauge Control....

Customize-ASPxGaugeControl

Then, in the Visual Gauge Control Designer, locate the scale's smart tag and click Run Designer.

ASPXGauge-RunScaleDesigner

Scales - Element Designer allows you to customize scale's appearance, geometry, and contains ranges and labels editors.

See the Arc Scale designer below.

ScalesElementDesigner

To learn more, refer to the Designer topic.

See Also