MarkComposition
public readonly struct MarkCompositionSnapshot 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.
Fields
Section titled “Fields”
HasBars
Section titled “HasBars”public readonly bool HasBarsNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasHorizontalBars
Section titled “HasHorizontalBars”public readonly bool HasHorizontalBarsNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasLines
Section titled “HasLines”public readonly bool HasLinesNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasPoints
Section titled “HasPoints”public readonly bool HasPointsNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasAreas
Section titled “HasAreas”public readonly bool HasAreasNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasCandlesticks
Section titled “HasCandlesticks”public readonly bool HasCandlesticksNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasSectors
Section titled “HasSectors”public readonly bool HasSectorsNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasRadar
Section titled “HasRadar”public readonly bool HasRadarNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasRules
Section titled “HasRules”public readonly bool HasRulesNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasRectangles
Section titled “HasRectangles”public readonly bool HasRectanglesNo description is available for this member.
Returns
System.Boolean — No return description is available.
HasAnyCartesian
Section titled “HasAnyCartesian”public readonly bool HasAnyCartesianTrue when at least one cartesian-family mark is present.
Returns
System.Boolean — No return description is available.
HasAnyPolar
Section titled “HasAnyPolar”public readonly bool HasAnyPolarTrue when at least one polar-family mark (Sector) is present.
Returns
System.Boolean — No return description is available.
TotalMarkCount
Section titled “TotalMarkCount”public readonly int TotalMarkCountNo description is available for this member.
Returns
System.Int32 — No return description is available.
public static readonly MarkComposition EmptyNo description is available for this member.
Returns
ChartGuru.MarkComposition — No return description is available.
Constructors
Section titled “Constructors”
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 |
Methods
Section titled “Methods”
From(IReadOnlyList)
Section titled “From(IReadOnlyList)”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.