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

Name Type Description
label System.String Category or axis label associated with the point.
value System.Single Primary numeric value.
secondaryValue System.Single Optional second value for ranges, intervals, or paired measures.
seriesIndex System.Int32 Zero-based index of the series that owns the point.
seriesName System.String Optional display name for the owning series.

public override string ToString()

Returns

System.String