PlotGroup
public class PlotGroup : IChartContentA logical grouping container for chart marks that participate in scales as one unit.
Swift Charts equivalent: Plot { … } (iOS 17).
Marks inside a PlotGroup inherit group-level modifiers unless individually overridden.
Constructors
Section titled “Constructors”
PlotGroup()
Section titled “PlotGroup()”public PlotGroup()Methods
Section titled “Methods”
Add(IChartMark)
Section titled “Add(IChartMark)”public void Add(IChartMark mark)Appends a non-null mark to the group in rendering order.
Parameters
| Name | Type |
|---|---|
mark |
ChartGuru.IChartMark |
AddRange(IEnumerable)
Section titled “AddRange(IEnumerable)”public void AddRange(IEnumerable<IChartMark> marks)Appends each non-null mark from the sequence in enumeration order. A null sequence is ignored.
Parameters
| Name | Type |
|---|---|
marks |
System.Collections.Generic.IEnumerable{ChartGuru.IChartMark} |
GetMarks()
Section titled “GetMarks()”public IEnumerable<IChartMark> GetMarks()Expands this composite content into individual chart marks for rendering.
Returns
System.Collections.Generic.IEnumerable{ChartGuru.IChartMark}: Enumerable of primitive chart marks.
ForegroundStyle(Color)
Section titled “ForegroundStyle(Color)”public PlotGroup 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.PlotGroup
ForegroundStyle(PlottableValueRef)
Section titled “ForegroundStyle(PlottableValueRef)”public PlotGroup ForegroundStyle(PlottableValueRef value)Configures the fill or stroke color used by generated marks; selector overloads resolve the style separately for each datum.
Parameters
| Name | Type |
|---|---|
value |
ChartGuru.PlottableValueRef |
Returns
ChartGuru.PlotGroup
Series(PlottableValueRef)
Section titled “Series(PlottableValueRef)”public PlotGroup Series(PlottableValueRef value)Assigns the series key inherited by child marks that do not define their own series.
Parameters
| Name | Type |
|---|---|
value |
ChartGuru.PlottableValueRef |
Returns
ChartGuru.PlotGroup
ZIndex(int)
Section titled “ZIndex(int)”public PlotGroup ZIndex(int value)Sets the draw-order value inherited by child marks whose z-index is zero.
Parameters
| Name | Type |
|---|---|
value |
System.Int32 |
Returns
ChartGuru.PlotGroup
LineStyle(StrokeStyle)
Section titled “LineStyle(StrokeStyle)”public PlotGroup 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.PlotGroup
Properties
Section titled “Properties”
DataPoint
Section titled “DataPoint”public DataPoint DataPoint { get; }The primary data point associated with this content.
Returns
ChartGuru.DataPoint
Visible
Section titled “Visible”public bool Visible { get; set; }Visibility flag for the entire composite.
Returns
System.Boolean
SeriesKey
Section titled “SeriesKey”public object SeriesKey { get; set; }Series key for grouping in legends.
Returns
System.Object
ForegroundStyleKey
Section titled “ForegroundStyleKey”public object ForegroundStyleKey { get; set; }Returns
System.Object
ZIndexValue
Section titled “ZIndexValue”public int ZIndexValue { get; set; }Returns
System.Int32
StrokeStyle
Section titled “StrokeStyle”public StrokeStyle StrokeStyle { get; set; }Returns
ChartGuru.StrokeStyle
public IReadOnlyList<IChartMark> Marks { get; }Returns
System.Collections.Generic.IReadOnlyList{ChartGuru.IChartMark}