Skip to content

MockDataPoint

StructMockMagiccom.wetzold.mock-magic
public struct MockDataPoint

Represents a single data point with a label and value.

public string Label

The label/category for this data point.

Returns

System.String

public float Value

The primary value.

Returns

System.Single

public float SecondaryValue

Optional secondary value (e.g., for range data).

Returns

System.Single

public int SeriesIndex

The index of the series this point belongs to (for multi-series data).

Returns

System.Int32

public string SeriesName

Optional series name.

Returns

System.String

MockDataPoint(string, float, float, int, string)

Section titled “MockDataPoint(string, float, float, int, string)”
public MockDataPoint(string label, float value, float secondaryValue = 0, int seriesIndex = 0, string seriesName = null)

Creates a labeled data point with primary and optional secondary values and series identity.

Parameters

NameTypeDescription
labelSystem.StringCategory or axis label associated with the point.
valueSystem.SinglePrimary numeric value.
secondaryValueSystem.SingleOptional second value for ranges, intervals, or paired measures.
seriesIndexSystem.Int32Zero-based index of the series that owns the point.
seriesNameSystem.StringOptional display name for the owning series.

public override string ToString()

Returns

System.String