Table of Contents

Class ChartValue

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A single labelled value, plotted by the single-series charts (pie, funnel, waterfall, treemap and so on).

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

Constructors

ChartValue(string, double)

A single labelled value, plotted by the single-series charts (pie, funnel, waterfall, treemap and so on).

public ChartValue(string Label, double Value)

Parameters

Label string

The label shown on the axis, legend, tooltips and table view.

Value double

The value.

Properties

Label

The label shown on the axis, legend, tooltips and table view.

public string Label { get; init; }

Property Value

string

Value

The value.

public double Value { get; init; }

Property Value

double

Methods

Deconstruct(out string, out double)

public void Deconstruct(out string Label, out double Value)

Parameters

Label string
Value double

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartValue?)

public bool Equals(ChartValue? other)

Parameters

other ChartValue

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartValue?, ChartValue?)

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

Parameters

left ChartValue
right ChartValue

Returns

bool

operator !=(ChartValue?, ChartValue?)

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

Parameters

left ChartValue
right ChartValue

Returns

bool