RulePlot<T>
public class RulePlot<T> : ChartMark, IChartMarkVectorized rule plot for rendering rules from collection data. Swift Charts equivalent: RulePlot(data, x:) or RulePlot(data, y:)
Methods
Section titled “Methods”
Vertical(IEnumerable, Func<T, float>)
Section titled “Vertical(IEnumerable, Func<T, float>)”public static RulePlot<T> Vertical(IEnumerable<T> data, Func<T, float> x)Creates a vertical RulePlot at x positions. Swift Charts equivalent: RulePlot(data, x: .value)
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
Returns
ChartGuru.RulePlot`1
Horizontal(IEnumerable, Func<T, float>)
Section titled “Horizontal(IEnumerable, Func<T, float>)”public static RulePlot<T> Horizontal(IEnumerable<T> data, Func<T, float> y)Creates a horizontal RulePlot at y positions. Swift Charts equivalent: RulePlot(data, y: .value)
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
y |
System.Func{{T},System.Single} |
Returns
ChartGuru.RulePlot`1
VerticalSegment(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)
Section titled “VerticalSegment(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)”public static RulePlot<T> VerticalSegment(IEnumerable<T> data, Func<T, float> x, Func<T, float> yStart, Func<T, float> yEnd)Creates a RulePlot with segments. Swift Charts equivalent: RulePlot(data, x:, yStart:, yEnd:)
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
yStart |
System.Func{{T},System.Single} |
yEnd |
System.Func{{T},System.Single} |
Returns
ChartGuru.RulePlot`1
HorizontalSegment(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)
Section titled “HorizontalSegment(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)”public static RulePlot<T> HorizontalSegment(IEnumerable<T> data, Func<T, float> xStart, Func<T, float> xEnd, Func<T, float> y)Creates a RulePlot with horizontal segments. Swift Charts equivalent: RulePlot(data, xStart:, xEnd:, y:)
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
xStart |
System.Func{{T},System.Single} |
xEnd |
System.Func{{T},System.Single} |
y |
System.Func{{T},System.Single} |
Returns
ChartGuru.RulePlot`1
GetMarks()
Section titled “GetMarks()”public IEnumerable<RuleMark> GetMarks()Generates individual RuleMarks from the data.
Returns
System.Collections.Generic.IEnumerable{ChartGuru.RuleMark}
LineStyle(float)
Section titled “LineStyle(float)”public RulePlot<T> LineStyle(float width)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
Returns
ChartGuru.RulePlot`1
LineStyle(StrokeStyle)
Section titled “LineStyle(StrokeStyle)”public RulePlot<T> LineStyle(StrokeStyle style)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
style |
ChartGuru.StrokeStyle |
Returns
ChartGuru.RulePlot`1
LineStyle(Func<T, float>)
Section titled “LineStyle(Func<T, float>)”public RulePlot<T> LineStyle(Func<T, float> selector)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
selector |
System.Func{{T},System.Single} |
Returns
ChartGuru.RulePlot`1
LineStyle(Func<T, StrokeStyle>)
Section titled “LineStyle(Func<T, StrokeStyle>)”public RulePlot<T> LineStyle(Func<T, StrokeStyle> selector)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
selector |
System.Func{{T},ChartGuru.StrokeStyle} |
Returns
ChartGuru.RulePlot`1
ForegroundStyle(Color)
Section titled “ForegroundStyle(Color)”public RulePlot<T> ForegroundStyle(Color color)Configures the fill or stroke color used by generated marks; selector overloads resolve the style separately for each datum.
Parameters
| Name | Type |
|---|---|
color |
UnityEngine.Color |
Returns
ChartGuru.RulePlot`1
ForegroundStyle(Func<T, object>)
Section titled “ForegroundStyle(Func<T, object>)”public RulePlot<T> ForegroundStyle(Func<T, object> seriesSelector)Configures the fill or stroke color used by generated marks; selector overloads resolve the style separately for each datum.
Parameters
| Name | Type |
|---|---|
seriesSelector |
System.Func{{T},System.Object} |
Returns
ChartGuru.RulePlot`1
ForegroundStyle(Func<T, Color>)
Section titled “ForegroundStyle(Func<T, Color>)”public RulePlot<T> ForegroundStyle(Func<T, Color> colorSelector)Configures the fill or stroke color used by generated marks; selector overloads resolve the style separately for each datum.
Parameters
| Name | Type |
|---|---|
colorSelector |
System.Func{{T},UnityEngine.Color} |
Returns
ChartGuru.RulePlot`1
AccessibilityLabel(Func<T, string>)
Section titled “AccessibilityLabel(Func<T, string>)”public RulePlot<T> AccessibilityLabel(Func<T, string> selector)Provides the spoken label for each generated mark when assistive chart navigation is used.
Parameters
| Name | Type |
|---|---|
selector |
System.Func{{T},System.String} |
Returns
ChartGuru.RulePlot`1
AccessibilityValue(Func<T, string>)
Section titled “AccessibilityValue(Func<T, string>)”public RulePlot<T> AccessibilityValue(Func<T, string> selector)Provides the spoken value for each generated mark when assistive chart navigation is used.
Parameters
| Name | Type |
|---|---|
selector |
System.Func{{T},System.String} |
Returns
ChartGuru.RulePlot`1
Opacity(float)
Section titled “Opacity(float)”public RulePlot<T> Opacity(float value)Configures the alpha multiplier for generated marks; selector overloads evaluate it separately for each datum.
Parameters
| Name | Type |
|---|---|
value |
System.Single |
Returns
ChartGuru.RulePlot`1
Opacity(Func<T, float>)
Section titled “Opacity(Func<T, float>)”public RulePlot<T> Opacity(Func<T, float> selector)Configures the alpha multiplier for generated marks; selector overloads evaluate it separately for each datum.
Parameters
| Name | Type |
|---|---|
selector |
System.Func{{T},System.Single} |
Returns
ChartGuru.RulePlot`1
GetMorphTargets(ChartType, Rect)
Section titled “GetMorphTargets(ChartType, Rect)”public override (Vector2 source, Vector2 target) GetMorphTargets(ChartType targetType, Rect plotArea)Projects this mark into plot-space geometry that the morph renderer can interpolate toward the requested chart type.
Parameters
| Name | Type |
|---|---|
targetType |
ChartGuru.ChartType |
plotArea |
UnityEngine.Rect |
Returns
System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2}
Clone()
Section titled “Clone()”public override IChartMark Clone()Creates an independent copy of this Rule Plot; later configuration changes do not affect the original instance.
Returns
ChartGuru.IChartMark
Properties
Section titled “Properties”
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }Returns
ChartGuru.ChartType
public IEnumerable<T> Data { get; }Returns
System.Collections.Generic.IEnumerable{{T}}