Class ChartDatum
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
XdoubleYdoubleWidthdoubleHeightdoubleTitlestringRowsIReadOnlyList<ChartDatumRow>HoverChartHoverClipstringAnchorXdouble?AnchorYdouble?
Properties
AnchorX
public double? AnchorX { get; init; }
Property Value
AnchorY
public double? AnchorY { get; init; }
Property Value
AriaLabel
Gets the datum described as one sentence for assistive technology.
public string AriaLabel { get; }
Property Value
Clip
public string? Clip { get; init; }
Property Value
Height
public double Height { get; init; }
Property Value
Hover
public ChartHover Hover { get; init; }
Property Value
Rows
public IReadOnlyList<ChartDatumRow> Rows { get; init; }
Property Value
Title
public string Title { get; init; }
Property Value
Width
public double Width { get; init; }
Property Value
X
public double X { get; init; }
Property Value
Y
public double Y { get; init; }
Property Value
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
XdoubleYdoubleWidthdoubleHeightdoubleTitlestringRowsIReadOnlyList<ChartDatumRow>HoverChartHoverClipstringAnchorXdouble?AnchorYdouble?
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ChartDatum?)
public bool Equals(ChartDatum? other)
Parameters
otherChartDatum
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChartDatum?, ChartDatum?)
public static bool operator ==(ChartDatum? left, ChartDatum? right)
Parameters
leftChartDatumrightChartDatum
Returns
operator !=(ChartDatum?, ChartDatum?)
public static bool operator !=(ChartDatum? left, ChartDatum? right)
Parameters
leftChartDatumrightChartDatum