MockDataPoint
public struct MockDataPointRepresents a single data point with a label and value.
Fields
Section titled “Fields”
public string LabelThe label/category for this data point.
Returns
System.String
public float ValueThe primary value.
Returns
System.Single
SecondaryValue
Section titled “SecondaryValue”public float SecondaryValueOptional secondary value (e.g., for range data).
Returns
System.Single
SeriesIndex
Section titled “SeriesIndex”public int SeriesIndexThe index of the series this point belongs to (for multi-series data).
Returns
System.Int32
SeriesName
Section titled “SeriesName”public string SeriesNameOptional series name.
Returns
System.String
Constructors
Section titled “Constructors”
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. |
Methods
Section titled “Methods”
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String