Skip to content
ChartForgeX

API Reference

Class

ChartXProjection

Namespace ChartForgeX.Rendering
Assembly ChartForgeX
Modifiers sealed

A detached linear X projection captured from a prepared Line or StepLine chart.

Inheritance

  • Object
  • ChartXProjection

Remarks

Bounds include resolved authored limits and automatic full-chart marker padding. A requested viewport retains those full bounds while using its exact window for mapping and clipping. This snapshot does not retain the chart, its axes, or formatter callbacks.

Usage

Explore 1 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.

Returned or exposed by 1

Methods

public ChartXViewport? ConstrainViewport(Double firstLogicalX, Double secondLogicalX) #
Returns: ChartXViewport?

Converts a logical gesture into an increasing X window contained in the captured full domain.

Parameters

firstLogicalX System.Double requiredposition: 0
The first logical X position, including positions outside the plot.
secondLogicalX System.Double requiredposition: 1
The second logical X position, including positions outside the plot.

Returns

The confined window, or null when the requested span covers the full domain and preparation should reset.

Exceptions

  • ArgumentOutOfRangeException โ€“ A position or mapped bound is not finite, or the requested span is empty or cannot be represented at the confined bounds.
public Double Project(Double sourceX) #
Returns: Double

Maps a finite source X coordinate into logical scene units.

Parameters

sourceX System.Double requiredposition: 0
A source coordinate, including coordinates outside the current window.

Returns

The mapped coordinate; values outside the window extrapolate beyond the plot.

Exceptions

  • ArgumentOutOfRangeException โ€“ The input or extrapolated result is not finite.
public Double Unproject(Double logicalX) #
Returns: Double

Maps a finite logical X coordinate back into source coordinates.

Parameters

logicalX System.Double requiredposition: 0
A logical coordinate, including coordinates outside the plot.

Returns

The source coordinate; values outside the plot extrapolate beyond the current window.

Exceptions

  • ArgumentOutOfRangeException โ€“ The input or extrapolated result is not finite.

Properties

public Double FullMinimum { get; } #

Gets the lower resolved X bound before applying a viewport.

public Double FullMaximum { get; } #

Gets the upper resolved X bound before applying a viewport.

public Double Minimum { get; } #

Gets the lower X bound used by this prepared scene.

public Double Maximum { get; } #

Gets the upper X bound used by this prepared scene.

public ChartRect PlotBounds { get; } #

Gets the final plot rectangle in logical scene units.

public Boolean Reversed { get; } #

Gets whether increasing source X runs from right to left.