RectanglePlot<T>
public class RectanglePlot<T> : ChartMark, IChartMarkVectorized rectangle plot for rendering rectangles from collection data. Swift Charts equivalent: RectanglePlot(data, xStart:, xEnd:, yStart:, yEnd:)
Constructors
Section titled “Constructors”
RectanglePlot(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>, Func<T, float>)
Section titled “RectanglePlot(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>, Func<T, float>)”public RectanglePlot(IEnumerable<T> data, Func<T, float> xStart, Func<T, float> xEnd, Func<T, float> yStart, Func<T, float> yEnd)Creates a RectanglePlot from collection data with interval selectors. Swift Charts equivalent: RectanglePlot(data, xStart:, xEnd:, yStart:, yEnd:)
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
xStart |
System.Func{{T},System.Single} |
xEnd |
System.Func{{T},System.Single} |
yStart |
System.Func{{T},System.Single} |
yEnd |
System.Func{{T},System.Single} |
Methods
Section titled “Methods”
GetMarks()
Section titled “GetMarks()”public IEnumerable<RectangleMark> GetMarks()Generates individual RectangleMarks from the data.
Returns
System.Collections.Generic.IEnumerable{ChartGuru.RectangleMark}
CornerRadius(float)
Section titled “CornerRadius(float)”public RectanglePlot<T> CornerRadius(float radius)Sets corner rounding for supported bar, rectangle, or sector geometry.
Parameters
| Name | Type |
|---|---|
radius |
System.Single |
Returns
ChartGuru.RectanglePlot`1
Width(float)
Section titled “Width(float)”public RectanglePlot<T> Width(float value)Sets mark width; selector overloads resolve a separate width for each source datum.
Parameters
| Name | Type |
|---|---|
value |
System.Single |
Returns
ChartGuru.RectanglePlot`1
Width(MarkDimension)
Section titled “Width(MarkDimension)”public RectanglePlot<T> Width(MarkDimension dimension)Sets mark width; selector overloads resolve a separate width for each source datum.
Parameters
| Name | Type |
|---|---|
dimension |
ChartGuru.MarkDimension |
Returns
ChartGuru.RectanglePlot`1
Height(float)
Section titled “Height(float)”public RectanglePlot<T> Height(float value)Sets mark height; selector overloads resolve a separate height for each source datum.
Parameters
| Name | Type |
|---|---|
value |
System.Single |
Returns
ChartGuru.RectanglePlot`1
Height(MarkDimension)
Section titled “Height(MarkDimension)”public RectanglePlot<T> Height(MarkDimension dimension)Sets mark height; selector overloads resolve a separate height for each source datum.
Parameters
| Name | Type |
|---|---|
dimension |
ChartGuru.MarkDimension |
Returns
ChartGuru.RectanglePlot`1
Dimensions(MarkDimensions)
Section titled “Dimensions(MarkDimensions)”public RectanglePlot<T> Dimensions(MarkDimensions<T> dimensions)Sets mark width and height together; selector overloads resolve dimensions for each source datum.
Parameters
| Name | Type |
|---|---|
dimensions |
ChartGuru.MarkDimensions{{T}} |
Returns
ChartGuru.RectanglePlot`1
ForegroundStyle(Color)
Section titled “ForegroundStyle(Color)”public RectanglePlot<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.RectanglePlot`1
ForegroundStyle(Func<T, object>)
Section titled “ForegroundStyle(Func<T, object>)”public RectanglePlot<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.RectanglePlot`1
ForegroundStyle(Func<T, Color>)
Section titled “ForegroundStyle(Func<T, Color>)”public RectanglePlot<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.RectanglePlot`1
AccessibilityLabel(Func<T, string>)
Section titled “AccessibilityLabel(Func<T, string>)”public RectanglePlot<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.RectanglePlot`1
AccessibilityValue(Func<T, string>)
Section titled “AccessibilityValue(Func<T, string>)”public RectanglePlot<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.RectanglePlot`1
Opacity(float)
Section titled “Opacity(float)”public RectanglePlot<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.RectanglePlot`1
Opacity(Func<T, float>)
Section titled “Opacity(Func<T, float>)”public RectanglePlot<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.RectanglePlot`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 Rectangle 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}}