Table of Contents

Class ChartPoint

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A point positioned by two numeric values, plotted by TwScatterChart and TwQuadrantChart.

public sealed record ChartPoint : IEquatable<ChartPoint>
Inheritance
ChartPoint
Implements
Inherited Members

Constructors

ChartPoint(double, double, string?, double?)

A point positioned by two numeric values, plotted by TwScatterChart and TwQuadrantChart.

public ChartPoint(double X, double Y, string? Label = null, double? Size = null)

Parameters

X double

The value along the horizontal axis.

Y double

The value along the vertical axis.

Label string

An optional name for the point, shown in its tooltip and the table view.

Size double?

An optional third value. When set the point is drawn as a bubble whose area follows it.

Properties

Label

An optional name for the point, shown in its tooltip and the table view.

public string? Label { get; init; }

Property Value

string

Size

An optional third value. When set the point is drawn as a bubble whose area follows it.

public double? Size { get; init; }

Property Value

double?

X

The value along the horizontal axis.

public double X { get; init; }

Property Value

double

Y

The value along the vertical axis.

public double Y { get; init; }

Property Value

double

Methods

Deconstruct(out double, out double, out string?, out double?)

public void Deconstruct(out double X, out double Y, out string? Label, out double? Size)

Parameters

X double
Y double
Label string
Size double?

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartPoint?)

public bool Equals(ChartPoint? other)

Parameters

other ChartPoint

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartPoint?, ChartPoint?)

public static bool operator ==(ChartPoint? left, ChartPoint? right)

Parameters

left ChartPoint
right ChartPoint

Returns

bool

operator !=(ChartPoint?, ChartPoint?)

public static bool operator !=(ChartPoint? left, ChartPoint? right)

Parameters

left ChartPoint
right ChartPoint

Returns

bool