New to Telerik UI for WPFStart a free 30-day trial

Interface which converts real scale value (given as value between Min and Max property of the scale) to the relative value (value in the [0...1] interval) which will represent relative position of the value along the scale and vice versa. It also will be able to calculate value for the tick mark using its index and total number of ticks.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public interface IValueDistribution

Derived Classes: ClassicLogarithmicDistributionLogarithmicDistributionBaseRangeLogarithmicDistributionRegularDistribution

Methods

Calculate scale specific metrics which can be used to perform other calculations.

C#
void CalculateScaleMetrics(GraphicScale scale)
Parameters:scaleGraphicScale

Scale object.

Gets absolute value for given relative value.

C#
double GetAbsoluteValue(double min, double max, double relativeValue)
Parameters:mindouble

Minimal scale value.

maxdouble

Maximal scale value.

relativeValuedouble

Relative value.

Returns:

double

Absolute value.

Gets relative value for given absolute value.

C#
double GetRelativeValue(double min, double max, double absoluteValue)
Parameters:mindouble

Minimal scale value.

maxdouble

Maximal scale value.

absoluteValuedouble

Absolute value.

Returns:

double

Relative value.

Get value at the tick position.

C#
double GetValueAtTick(GraphicScale scale, int majorTickIndex, int middleTickIndex, int minorTickIndex)
Parameters:scaleGraphicScale

Scale object.

majorTickIndexint

MajorTick index.

middleTickIndexint

MiddleTick index.

minorTickIndexint

MinorTick index.

Returns:

double

Absolute value at the tick position.