Relative Measurements

The almost scale elements (tick marks, labels, indicators and so on) can be sized or placed using absolute or relative measurement system. The absolute measurement system sets size or distance in pixels. The relative measurement system sets size or distance as fraction of the so called “Cell Size”. The Cell Size has different meaning for Radial and Horizontal/Vertical scales.

Vertical or Horizontal scale
The linear scales (Horizontal and Vertical) use width and height of the whole space available for the control to calculate size and/or location of the scale objects:

Manco Gauge control - Cell size of the Horizontal and Vertical scales

To calculate offsets from the scale bar the Horizontal scale uses height and Vertical scale uses width of the space available for the control.

Radial scale
The Radial scale use minimum of the width and height of the whole space available for the control to calculate size, location or offset of the scale objects:

Manco Gauge control - Cell size of the Radial scale

Scale measurement objects
The Manco gauge control provides several classes which should be used whenever you need specify size, location and offset of the scale objects.

ObjectMeasure class
The major class which is used whenever you need to set size and/or location of the scale objects is Manco.DataVisualization.Common.ObjectMeasure class. It allows set measurement using absolute or relative measurement system.

Following example demonstrates how the Manco.DataVisualization.Common.ObjectMeasure class can be used to set width of the major tick marks of the Radial scale:

[XAML]
[C#]
[Visual Basic]

ObjectLocation class
The Manco.DataVisualization.Common.ObjectLocation provides an ability to position object inside the scale using both relative and absolute management. Usually this class is used to specify position of the state indicator or custom scale elements.

Following example demonstrates how the Manco.DataVisualization.Common.ObjectLocation class can be used to set location of the state indicator inside the Vertical scale:

[XAML]
[C#]
[Visual Basic]

ObjectSize class
The Manco.DataVisualization.Common.ObjectSize provides an ability to set size of the scale object using both relative and absolute management. Usually this class is used to specify size of the pinpoint, state indicator or custom scale elements.

Following example demonstrates how the Manco.DataVisualization.Common.ObjectSize class can be used to set size of the state indicator inside the Vertical scale:

[XAML]
[C#]
[Visual Basic]