Skip to content

RuleMark

ClassChartGuruChartGuru
[Serializable]
public class RuleMark : ChartMark, IChartMark

No description is available for this type.

public override ChartType MarkType { get; }

No description is available for this member.

Returns

ChartGuru.ChartType — No return description is available.

public bool IsHorizontal { get; set; }

Whether this is a horizontal (Y-value) or vertical (X-value) rule line.

Returns

System.Boolean — No return description is available.

public float Value { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public float LineWidth { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public float[] DashPattern { get; set; }

No description is available for this member.

Returns

System.Single[] — No return description is available.

public string Label { get; set; }

No description is available for this member.

Returns

System.String — No return description is available.

public bool ShowLabel { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public float? SecondaryMin { get; set; }

For segment-based rules: the minimum value on the secondary axis. For a vertical rule, this is the Y minimum. For a horizontal rule, this is the X minimum. When set, the rule becomes a line segment instead of spanning the full axis.

Returns

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

public float? SecondaryMax { get; set; }

For segment-based rules: the maximum value on the secondary axis.

Returns

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

public bool IsSegment { get; }

Whether this rule is a segment (has both min and max defined).

Returns

System.Boolean — No return description is available.

public bool IsDashed { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public RuleMark()

No description is available for this member.

public static RuleMark Horizontal(float yValue)

No description is available for this member.

Parameters

Name Type Description
yValue System.Single

Returns

ChartGuru.RuleMark — No return description is available.

public static RuleMark Vertical(float xValue)

No description is available for this member.

Parameters

Name Type Description
xValue System.Single

Returns

ChartGuru.RuleMark — No return description is available.

public static RuleMark VerticalSegment(float xValue, float yMin, float yMax)

Creates a vertical segment rule from yMin to yMax at the given X value. Useful for candlestick wicks.

Parameters

Name Type Description
xValue System.Single
yMin System.Single
yMax System.Single

Returns

ChartGuru.RuleMark — No return description is available.

public static RuleMark HorizontalSegment(float yValue, float xMin, float xMax)

Creates a horizontal segment rule from xMin to xMax at the given Y value.

Parameters

Name Type Description
yValue System.Single
xMin System.Single
xMax System.Single

Returns

ChartGuru.RuleMark — No return description is available.

public RuleMark LineStyle(float width)

Sets the line width for this rule. Swift Charts equivalent: .LineStyle(StrokeStyle(lineWidth:))

Parameters

Name Type Description
width System.Single

Returns

ChartGuru.RuleMark — No return description is available.

public RuleMark LineStyle(float[] dashPattern)

Sets a dashed line style. Swift Charts equivalent: .LineStyle(StrokeStyle(dash:))

Parameters

Name Type Description
dashPattern System.Single[]

Returns

ChartGuru.RuleMark — No return description is available.

public RuleMark LineStyle(StrokeStyle style)

Sets the full stroke style, including width and dash pattern. Swift Charts equivalent: .LineStyle(StrokeStyle(lineWidth:dash:)).

Parameters

Name Type Description
style ChartGuru.StrokeStyle

Returns

ChartGuru.RuleMark — No return description is available.

public override (Vector2 source, Vector2 target) GetMorphTargets(ChartType targetType, Rect plotArea)

No description is available for this member.

Parameters

Name Type Description
targetType ChartGuru.ChartType
plotArea UnityEngine.Rect

Returns

System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2} — No return description is available.

public override IChartMark Clone()

No description is available for this member.

Returns

ChartGuru.IChartMark — No return description is available.