RuleMark
[Serializable]public class RuleMark : ChartMark, IChartMarkNo description is available for this type.
Properties
Section titled “Properties”
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }No description is available for this member.
Returns
ChartGuru.ChartType — No return description is available.
IsHorizontal
Section titled “IsHorizontal”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.
LineWidth
Section titled “LineWidth”public float LineWidth { get; set; }No description is available for this member.
Returns
System.Single — No return description is available.
DashPattern
Section titled “DashPattern”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.
ShowLabel
Section titled “ShowLabel”public bool ShowLabel { get; set; }No description is available for this member.
Returns
System.Boolean — No return description is available.
SecondaryMin
Section titled “SecondaryMin”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.
SecondaryMax
Section titled “SecondaryMax”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.
IsSegment
Section titled “IsSegment”public bool IsSegment { get; }Whether this rule is a segment (has both min and max defined).
Returns
System.Boolean — No return description is available.
IsDashed
Section titled “IsDashed”public bool IsDashed { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
Constructors
Section titled “Constructors”
RuleMark()
Section titled “RuleMark()”public RuleMark()No description is available for this member.
Methods
Section titled “Methods”
Horizontal(float)
Section titled “Horizontal(float)”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.
Vertical(float)
Section titled “Vertical(float)”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.
VerticalSegment(float, float, float)
Section titled “VerticalSegment(float, float, float)”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.
HorizontalSegment(float, float, float)
Section titled “HorizontalSegment(float, float, float)”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.
LineStyle(float)
Section titled “LineStyle(float)”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.
LineStyle(float[])
Section titled “LineStyle(float[])”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.
LineStyle(StrokeStyle)
Section titled “LineStyle(StrokeStyle)”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.
GetMorphTargets(ChartType, Rect)
Section titled “GetMorphTargets(ChartType, Rect)”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.
Clone()
Section titled “Clone()”public override IChartMark Clone()No description is available for this member.
Returns
ChartGuru.IChartMark — No return description is available.