Table of Contents

Class ChartBullet

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

One measure on a TwBulletChart: an actual value benchmarked against a target.

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

Constructors

ChartBullet(string, double, double, IReadOnlyList<double>?)

One measure on a TwBulletChart: an actual value benchmarked against a target.

public ChartBullet(string Label, double Value, double Target, IReadOnlyList<double>? Ranges = null)

Parameters

Label string

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

Value double

The actual value, drawn as the bar.

Target double

The target value, drawn as a marker across the bar.

Ranges IReadOnlyList<double>

Optional qualitative range limits (for example poor, fair, good) drawn behind the bar.

Properties

Label

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

public string Label { get; init; }

Property Value

string

Ranges

Optional qualitative range limits (for example poor, fair, good) drawn behind the bar.

public IReadOnlyList<double>? Ranges { get; init; }

Property Value

IReadOnlyList<double>

Target

The target value, drawn as a marker across the bar.

public double Target { get; init; }

Property Value

double

Value

The actual value, drawn as the bar.

public double Value { get; init; }

Property Value

double

Methods

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

public void Deconstruct(out string Label, out double Value, out double Target, out IReadOnlyList<double>? Ranges)

Parameters

Label string
Value double
Target double
Ranges IReadOnlyList<double>

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartBullet?)

public bool Equals(ChartBullet? other)

Parameters

other ChartBullet

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartBullet?, ChartBullet?)

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

Parameters

left ChartBullet
right ChartBullet

Returns

bool

operator !=(ChartBullet?, ChartBullet?)

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

Parameters

left ChartBullet
right ChartBullet

Returns

bool