Skip to content
ChartForgeX
Class

ChartAxisProjection

ChartForgeX.Rendering

Namespace
ChartForgeX.Rendering
Assembly
ChartForgeX
Modifiers
sealed

A detached physical Cartesian axis captured after native layout and painted-extent fitting.

Inheritance

  • object
  • ChartAxisProjection

Remarks

Captures transforms, reversal, sign policy and full/window domains without retaining mutable charts or formatter callbacks.

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

ConstrainViewport 2 overloads
public ChartAxisWindow? ConstrainViewport(double firstLogical, double secondLogical) #

Confines a logical gesture, shifting a narrower crossing span intact into the full domain.

Parameters

firstLogical double required
secondLogical double required

Returns

ChartAxisWindow? The confined source window, or null when it covers the full domain. Calendar gestures use an exclusive canonical upper edge.
public ChartAxisWindow? ConstrainViewport(ChartAxisWindow requested) #

Confines a source window, preserving exact contained bounds and their upper-endpoint policy.

Parameters

requested ChartForgeX.Core.ChartAxisWindow required

Returns

ChartAxisWindow? The confined window, or null for the exact complete raw domain.
public double Project(double source) #

Projects a finite source value, extrapolating beyond the current window.

Parameters

source double required

Returns

double
public double Unproject(double logical) #

Inverts a finite logical coordinate through the captured scale. Unit time selects the canonical lower calendar boundary.

Parameters

logical double required

Returns

double

Properties

public ChartAxisDimension Dimension { get; } #

Gets the physical direction of the axis.

public ChartAxisSide Side { get; } #

Gets the primary or secondary slot.

public double FullMinimum { get; } #

Gets the resolved full lower source bound before the viewport.

public double FullMaximum { get; } #

Gets the resolved full upper source bound before the viewport.

public double Minimum { get; } #

Gets the lower source bound used by this scene.

public double Maximum { get; } #

Gets the upper source bound used by this scene.

public bool MaximumInclusive { get; } #

Gets whether observations exactly at the current upper source bound belong to this window.

public ChartRect PlotBounds { get; } #

Gets the final logical plot rectangle.

public bool Reversed { get; } #

Gets whether the authored axis is reversed.

public ChartScaleKind Scale { get; } #

Gets the captured scale.

public double LogarithmBase { get; } #

Gets the captured logarithm base.

public ChartLogarithmicDomain LogarithmicDomain { get; } #

Gets the captured logarithmic sign policy.

public ChartTimeSessionDomain? TimeSessions { get; } #

Gets the immutable included-time policy, or null for continuous coordinates.

public ChartTimeSpacing? TimeSpacing { get; } #

Gets captured ordinal or calendar-band time spacing, or null for elapsed time.