PolarXAxis

StockSharp.Xaml.Charting.Visuals.Axes

Provides a Polar, Value Numeric Axis, capable of rendering double, int, short, byte, long ticks on the XAxis of a UltrachartSurface.

Inherits: NumericAxis

Constructors

PolarXAxis
public PolarXAxis()
polarXAxis = PolarXAxis()

Initializes a new instance of the PolarXAxis class.

Properties

IsHorizontalAxis
public override bool IsHorizontalAxis { get; }
value = polarXAxis.IsHorizontalAxis

Gets whether the current axis is horizontal or not

IsPolarAxis
public override bool IsPolarAxis { get; }
value = polarXAxis.IsPolarAxis

Gets a value indicating whether this instance is a polar axis.

Methods

DrawGridLine
protected override void DrawGridLine(IRenderContext2D renderContext, Style gridLineStyle, IEnumerable<float> coordsToDraw)
polarXAxis.DrawGridLine(renderContext, gridLineStyle, coordsToDraw)

Draws grid lines on chart at specified coordinates

renderContext
gridLineStyle
coordsToDraw
GetAxisOffset
public override double GetAxisOffset()
result = polarXAxis.GetAxisOffset()

Returns the offset of the Axis

GetAxisParams
public override AxisParams GetAxisParams()
result = polarXAxis.GetAxisParams()

Gets an AxisParams struct with info about the current axis setup

GetLabelPosition
protected override Point GetLabelPosition(float offset, float coords)
result = polarXAxis.GetLabelPosition(offset, coords)

Get coordinates to place tick label

offset
coords
HitTest
public override AxisInfo HitTest(IComparable dataValue)
result = polarXAxis.HitTest(dataValue)

Performs a HitTest operation on the AxisBase. The supplied is used to convert to AxisInfo struct, which contains information about the axis, as well as formatted values

dataValue
The data value.

Returns: The AxisInfo result

OnApplyTemplate
public override void OnApplyTemplate()
polarXAxis.OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call OnApplyTemplate.