Skip to content
ChartForgeX
Struct

ChartPoint

ChartForgeX.Primitives

Namespace
ChartForgeX.Primitives
Assembly
ChartForgeX
Base
ValueType
Modifiers
sealed

Represents one data point in chart coordinate space.

Inheritance

  • ValueType
  • ChartPoint

Usage

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

Accepted by parameters 88

Constructors

ChartPoint 4 overloads
public ChartPoint(double x, double y) #

Initializes a new instance of the ChartPoint struct.

Parameters

x double required
The horizontal coordinate.
y double required
The vertical coordinate.
public ChartPoint(double x, double y, bool breakBefore) #

Creates a finite point and optionally starts a disconnected line or area segment.

Parameters

x double required
y double required
breakBefore bool required
public ChartPoint(DateTime x, double y) #

Initializes a new instance of the ChartPoint struct from a date/time x value. The x value is stored as a UTC instant: DateTimeKind.Local values are converted to UTC and DateTimeKind.Unspecified values are treated as UTC.

Parameters

x System.DateTime required
The date/time x value.
y double required
The vertical coordinate.
public ChartPoint(DateTime x, double y, bool breakBefore) #

Creates a date/time point (stored as a UTC instant, see ChartPoint.ChartPoint) and optionally starts a disconnected line or area segment.

Parameters

x System.DateTime required
y double required
breakBefore bool required

Methods

public override bool Equals(object? obj) #

Indicates whether this instance and a specified object are equal.

Parameters

obj object? required
The object to compare with the current instance.

Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.
public static ChartPoint FromDateTime(DateTime x, double y) #

Creates a chart point from a date/time x value.

Parameters

x System.DateTime required
The date/time x value.
y double required
The vertical coordinate.

Returns

ChartPoint A chart point using the date/time as the x value.
public override int GetHashCode() #

Returns the hash code for this instance.

Returns

int A 32-bit signed integer that is the hash code for this instance.
public ChartPoint WithColorValue(double? value) #

Returns an independent point with the same coordinates and segment boundary and a replacement color measurement.

Parameters

value double? required
The finite numeric color measurement, or null to clear it.

Returns

ChartPoint A new point. The current point is unchanged.
public ChartPoint WithMarkOptions(ChartMarkOptions? options) #

Returns a copy with replacement mark metadata, retaining all authored values.

Parameters

options ChartForgeX.Core.ChartMarkOptions? required
Immutable metadata, or null to clear it.

Returns

ChartPoint A new observation. The current observation is unchanged.

Properties

public bool BreakBefore { get; } #

Gets whether a new disconnected line or area segment starts at this point.

public double? ColorValue { get; } #

Gets the independent numeric color measurement, or null when no measurement is supplied.

public ChartMarkOptions? MarkOptions { get; } #

Gets optional immutable navigation, accessibility and host metadata.

Fields

public readonly double X #

Gets the horizontal coordinate.

public readonly double Y #

Gets the vertical coordinate.