Skip to content

AxisValue

StructChartGuruChartGuru
public struct AxisValue

Represents a value at an axis mark position. Swift Charts equivalent: AxisValue in AxisMarks { value in … } Access to the value and formatting utilities.

public int Index { get; }

The index of this value in the sequence of axis marks.

Returns

System.Int32 — No return description is available.

public int Count { get; }

The total number of axis values in the current sequence. Swift Charts equivalent: AxisValue.count.

Returns

System.Int32 — No return description is available.

public float RawValue { get; }

The raw numeric value.

Returns

System.Single — No return description is available.

public string Formatted { get; }

The formatted string representation of the value.

Returns

System.String — No return description is available.

public PlottableType Type { get; }

The data type of this value.

Returns

ChartGuru.PlottableType — No return description is available.

AxisValue(float, int, string, PlottableType)

Section titled “AxisValue(float, int, string, PlottableType)”
public AxisValue(float value, int index, string formatted, PlottableType type = PlottableType.Quantitative)

No description is available for this member.

Parameters

Name Type Description
value System.Single
index System.Int32
formatted System.String
type ChartGuru.PlottableType

AxisValue(float, int, int, string, PlottableType)

Section titled “AxisValue(float, int, int, string, PlottableType)”
public AxisValue(float value, int index, int count, string formatted, PlottableType type = PlottableType.Quantitative)

No description is available for this member.

Parameters

Name Type Description
value System.Single
index System.Int32
count System.Int32
formatted System.String
type ChartGuru.PlottableType
public AxisValue(DateTime dateValue, int index, string formatted)

No description is available for this member.

Parameters

Name Type Description
dateValue System.DateTime
index System.Int32
formatted System.String
public AxisValue(DateTime dateValue, int index, int count, string formatted)

No description is available for this member.

Parameters

Name Type Description
dateValue System.DateTime
index System.Int32
count System.Int32
formatted System.String
public AxisValue(string categoryValue, int index, int categoryIndex)

No description is available for this member.

Parameters

Name Type Description
categoryValue System.String
index System.Int32
categoryIndex System.Int32
public AxisValue(string categoryValue, int index, int count, int categoryIndex)

No description is available for this member.

Parameters

Name Type Description
categoryValue System.String
index System.Int32
count System.Int32
categoryIndex System.Int32

public T? As<T>() where T : struct

Gets the value as the specified type. Swift Charts equivalent: value.as(Float.self)

Returns

System.Nullable{{T}} — No return description is available.

public T AsValue<T>() where T : struct

Gets the value as the specified type (non-nullable). Swift Charts equivalent: value.as(Float.self)!

Returns

{T} — No return description is available.

public string AsCategory()

Gets the category string Value (for categorical axes).

Returns

System.String — No return description is available.

public DateTime? AsDate()

Gets the DateTime Value (for temporal axes).

Returns

System.Nullable{System.DateTime} — No return description is available.

public override string ToString()

No description is available for this member.

Returns

System.String — No return description is available.