Skip to content

PlotGroup

ClassChartGuruChartGuru
public class PlotGroup : IChartContent

A 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.

public PlotGroup()

public void Add(IChartMark mark)

Appends a non-null mark to the group in rendering order.

Parameters

Name Type
mark ChartGuru.IChartMark
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}
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.

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

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

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

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

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

public DataPoint DataPoint { get; }

The primary data point associated with this content.

Returns

ChartGuru.DataPoint

public bool Visible { get; set; }

Visibility flag for the entire composite.

Returns

System.Boolean

public object SeriesKey { get; set; }

Series key for grouping in legends.

Returns

System.Object

public object ForegroundStyleKey { get; set; }

Returns

System.Object

public int ZIndexValue { get; set; }

Returns

System.Int32

public StrokeStyle StrokeStyle { get; set; }

Returns

ChartGuru.StrokeStyle

public IReadOnlyList<IChartMark> Marks { get; }

Returns

System.Collections.Generic.IReadOnlyList{ChartGuru.IChartMark}