Skip to content

MarkComposition

StructChartGuruChartGuru
public readonly struct MarkComposition

Snapshot of which mark kinds are present in a ChartGuru.Chart’s mark list. Drives the renderer and layout-engine’s mark-kind dispatch (Swift Charts parity: every kind that exists renders, regardless of ChartGuru.Chart.ChartType).

Cheap to compute (one O(n) pass) and cached on [ChartGuru.Chart](/tools/chartguru/api/chartguru-chart/); recomputed only when the mark list mutates.

The flags answer "is at least one mark of this kind present?" — fine-grained per-mark behavior (visibility, range vs scalar, layout) stays on the marks.

public readonly bool HasBars

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasHorizontalBars

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasLines

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasPoints

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasAreas

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasCandlesticks

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasSectors

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasRadar

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasRules

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasRectangles

No description is available for this member.

Returns

System.Boolean — No return description is available.

public readonly bool HasAnyCartesian

True when at least one cartesian-family mark is present.

Returns

System.Boolean — No return description is available.

public readonly bool HasAnyPolar

True when at least one polar-family mark (Sector) is present.

Returns

System.Boolean — No return description is available.

public readonly int TotalMarkCount

No description is available for this member.

Returns

System.Int32 — No return description is available.

public static readonly MarkComposition Empty

No description is available for this member.

Returns

ChartGuru.MarkComposition — No return description is available.

MarkComposition(bool, bool, bool, bool, bool, bool, bool, bool, bool, int)

Section titled “MarkComposition(bool, bool, bool, bool, bool, bool, bool, bool, bool, int)”
public MarkComposition(bool hasBars, bool hasHorizontalBars, bool hasLines, bool hasPoints, bool hasAreas, bool hasCandlesticks, bool hasSectors, bool hasRules, bool hasRectangles, int totalMarkCount)

No description is available for this member.

Parameters

Name Type Description
hasBars System.Boolean
hasHorizontalBars System.Boolean
hasLines System.Boolean
hasPoints System.Boolean
hasAreas System.Boolean
hasCandlesticks System.Boolean
hasSectors System.Boolean
hasRules System.Boolean
hasRectangles System.Boolean
totalMarkCount System.Int32

MarkComposition(bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, int)

Section titled “MarkComposition(bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, int)”
public MarkComposition(bool hasBars, bool hasHorizontalBars, bool hasLines, bool hasPoints, bool hasAreas, bool hasCandlesticks, bool hasSectors, bool hasRadar, bool hasRules, bool hasRectangles, int totalMarkCount)

No description is available for this member.

Parameters

Name Type Description
hasBars System.Boolean
hasHorizontalBars System.Boolean
hasLines System.Boolean
hasPoints System.Boolean
hasAreas System.Boolean
hasCandlesticks System.Boolean
hasSectors System.Boolean
hasRadar System.Boolean
hasRules System.Boolean
hasRectangles System.Boolean
totalMarkCount System.Int32

public static MarkComposition From(IReadOnlyList<IChartMark> marks)

Builds a composition snapshot from a mark list.

Parameters

Name Type Description
marks System.Collections.Generic.IReadOnlyList{ChartGuru.IChartMark}

Returns

ChartGuru.MarkComposition — No return description is available.