Table of Contents

Class ChartDatum

Namespace
TwBlazor.Charting
Assembly
TwBlazor.dll

An interactive data point: the hover and keyboard-focus target that carries a tooltip. Positioned by its center. Clip is an optional CSS shape, in percentages of the datum's own box, that limits where the pointer triggers it; without one the whole box does. AnchorX and AnchorY are the plot position the tooltip points at; without them it sits above the middle of the box.

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

Constructors

ChartDatum(double, double, double, double, string, IReadOnlyList<ChartDatumRow>, ChartHover, string?, double?, double?)

An interactive data point: the hover and keyboard-focus target that carries a tooltip. Positioned by its center. Clip is an optional CSS shape, in percentages of the datum's own box, that limits where the pointer triggers it; without one the whole box does. AnchorX and AnchorY are the plot position the tooltip points at; without them it sits above the middle of the box.

public ChartDatum(double X, double Y, double Width, double Height, string Title, IReadOnlyList<ChartDatumRow> Rows, ChartHover Hover = ChartHover.Highlight, string? Clip = null, double? AnchorX = null, double? AnchorY = null)

Parameters

X double
Y double
Width double
Height double
Title string
Rows IReadOnlyList<ChartDatumRow>
Hover ChartHover
Clip string
AnchorX double?
AnchorY double?

Properties

AnchorX

public double? AnchorX { get; init; }

Property Value

double?

AnchorY

public double? AnchorY { get; init; }

Property Value

double?

AriaLabel

Gets the datum described as one sentence for assistive technology.

public string AriaLabel { get; }

Property Value

string

Clip

public string? Clip { get; init; }

Property Value

string

Height

public double Height { get; init; }

Property Value

double

Hover

public ChartHover Hover { get; init; }

Property Value

ChartHover

Rows

public IReadOnlyList<ChartDatumRow> Rows { get; init; }

Property Value

IReadOnlyList<ChartDatumRow>

Title

public string Title { get; init; }

Property Value

string

Width

public double Width { get; init; }

Property Value

double

X

public double X { get; init; }

Property Value

double

Y

public double Y { get; init; }

Property Value

double

Methods

Deconstruct(out double, out double, out double, out double, out string, out IReadOnlyList<ChartDatumRow>, out ChartHover, out string?, out double?, out double?)

public void Deconstruct(out double X, out double Y, out double Width, out double Height, out string Title, out IReadOnlyList<ChartDatumRow> Rows, out ChartHover Hover, out string? Clip, out double? AnchorX, out double? AnchorY)

Parameters

X double
Y double
Width double
Height double
Title string
Rows IReadOnlyList<ChartDatumRow>
Hover ChartHover
Clip string
AnchorX double?
AnchorY double?

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartDatum?)

public bool Equals(ChartDatum? other)

Parameters

other ChartDatum

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartDatum?, ChartDatum?)

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

Parameters

left ChartDatum
right ChartDatum

Returns

bool

operator !=(ChartDatum?, ChartDatum?)

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

Parameters

left ChartDatum
right ChartDatum

Returns

bool