Scaler

Defines the scaler class, this class helps to scale from the data scale to the user interface scale and vise versa.

Class · Namespace LiveChartsCore.Measure · Assembly LiveChartsCore · View source

Inheritance

Object Scaler

Members

Properties

IsLinear Boolean
Whether Scaler.ToPixels is a plain affine (linear) function of the value. The default scaler is; a custom scaler that maps values non-linearly (a logarithmic one, say) overrides this to so consumers that assume value ratios equal pixel ratios — such as pivot zoom — can take a pixel-space path instead.

Methods

ToPixels 1 parameter

Converts a given value (in chart values) to pixels.

Double value The value in chart values.

ToChartValues 1 parameter

Converts a given value (in pixels) to chart values.

Double pixels The value in pixels.

MeasureInPixels 1 parameter

Measures an absolute value in pixels.

Double value The value.

Constructors

Scaler 4 parameters

Initializes a new instance of the Scaler class.

LvcPoint drawMarginLocation The draw margin location.

LvcSize drawMarginSize Size of the draw margin.

ICartesianAxis axis The axis.

Bounds bounds Indicates the bounds to use.