PolarScaler
Class

Assembly LiveChartsCore
Namespace LiveChartsCore.Measure

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

Inheritance:
Object =>
PolarScaler

Constructors

// Initializes a new instance of the PolarScaler class.
LvcPoint drawMarginLocation, // The draw margin location.
LvcSize drawMarginSize, // Size of the draw margin.
IPolarAxis angleAxis, // The radius axis.
IPolarAxis radiusAxis, // The angle axis.
Single innerRadius, // The inner radius.
Single initialRotation, // The initial rotation.
Single totalAngle, // The total angle.
Boolean usePreviousScale// Indicates if the scaler should be built based on the previous known data.
)

Properties

Gets the center in the X axis.
Type: Single
Gets the center in the Y axis.
Type: Single
Gets the inner radius.
Type: Double
Gets the max radius in chart values scale.
Type: Double
Gets the min radius in chart values scale.
Type: Double
Gets the max angle.
Type: Double
Gets the min angle.
Type: Double

Methods

// Converts to pixels.
ChartPoint polarPoint// The polar point.
)
// Converts to pixels.
Double angle, // The angle in chart values scale.
Double radius// The radius in chart values.
)
// Converts to chart values.
Double x, // The x coordinate in pixels.
Double y// The y coordinate in pixels.
)
// Converts to pixels.
Double angle, // The angle in degrees.
Double radius// The radius.
)
// Converts to degrees the given angle in chart values.
Double angle// The angle in chart values.
)