Chart
public class ChartRepresents a fully configured chart, including its marks, axes, theme, layout,
interaction state, and animation settings. Create charts through ChartBuilder
for the fluent authoring workflow, or configure this model directly for advanced scenarios.
Methods
Section titled “Methods”
IsDirty(DirtyFlags)
Section titled “IsDirty(DirtyFlags)”public bool IsDirty(DirtyFlags flags)Reports whether any requested dirty flag is set, indicating that the corresponding chart state must be recalculated or rendered.
Parameters
| Name | Type |
|---|---|
flags | ChartGuru.DirtyFlags |
Returns
System.Boolean
Create()
Section titled “Create()”public static ChartBuilder Create()Creates an empty fluent builder for composing marks and chart-wide presentation.
Returns
ChartGuru.ChartBuilder
Create(IEnumerable, Func<T, IChartMark>)
Section titled “Create(IEnumerable, Func<T, IChartMark>)”public static ChartBuilder Create<T>(IEnumerable<T> data, Func<T, IChartMark> markFactory)Enumerates the source immediately and appends one factory-created mark per item to a new builder.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
markFactory | System.Func{{T},ChartGuru.IChartMark} |
Returns
ChartGuru.ChartBuilder
Create(IEnumerable, Func<T, IEnumerable>)
Section titled “Create(IEnumerable, Func<T, IEnumerable>)”public static ChartBuilder Create<T>(IEnumerable<T> data, Func<T, IEnumerable<IChartMark>> markFactory)Enumerates the source immediately and appends each non-null mark sequence returned for an item.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
markFactory | System.Func{{T},System.Collections.Generic.IEnumerable{ChartGuru.IChartMark}} |
Returns
ChartGuru.ChartBuilder
Create(IEnumerable, Func<T, int, IChartMark>)
Section titled “Create(IEnumerable, Func<T, int, IChartMark>)”public static ChartBuilder Create<T>(IEnumerable<T> data, Func<T, int, IChartMark> markFactory)Enumerates the source immediately and passes each item with its zero-based index to a one-mark factory.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
markFactory | System.Func{{T},System.Int32,ChartGuru.IChartMark} |
Returns
ChartGuru.ChartBuilder
Create<T, TMark>(IEnumerable, Func<T, TMark>)
Section titled “Create<T, TMark>(IEnumerable, Func<T, TMark>)”public static ChartBuilder Create<T, TMark>(IEnumerable<T> data, Func<T, TMark> markFactory) where TMark : IChartMarkCreates a builder by projecting every source item into a strongly typed chart mark.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
markFactory | System.Func{{T},{TMark}} |
Returns
ChartGuru.ChartBuilder
Create<T, TMark>(IEnumerable, Func<T, int, TMark>)
Section titled “Create<T, TMark>(IEnumerable, Func<T, int, TMark>)”public static ChartBuilder Create<T, TMark>(IEnumerable<T> data, Func<T, int, TMark> markFactory) where TMark : IChartMarkCreates a builder by projecting each source item and zero-based index into a strongly typed chart mark.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
markFactory | System.Func{{T},System.Int32,{TMark}} |
Returns
ChartGuru.ChartBuilder
CreateCompact(ChartType)
Section titled “CreateCompact(ChartType)”public static ChartBuilder CreateCompact(ChartType type = ChartType.Sparkline)Creates a compact chart (sparkline, mini bar, etc.) with a fluent builder.
Parameters
| Name | Type | Description |
|---|---|---|
type | ChartGuru.ChartType | The compact chart type (Sparkline, Trend, MiniBar, MiniPie, MiniDonut, Indicator). |
Returns
ChartGuru.ChartBuilder
CreateBars(IEnumerable, Func<T, float>, Func<T, string>, Action<BarMark, T, int>)
Section titled “CreateBars(IEnumerable, Func<T, float>, Func<T, string>, Action<BarMark, T, int>)”public static ChartBuilder CreateBars<T>(IEnumerable<T> data, Func<T, float> ySelector, Func<T, string> categoryLabelSelector, Action<BarMark, T, int> configure = null)Creates a vertical bar builder using source order for X positions, selected Y values, and selected category labels.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
ySelector | System.Func{{T},System.Single} |
categoryLabelSelector | System.Func{{T},System.String} |
configure | System.Action{ChartGuru.BarMark,{T},System.Int32} |
Returns
ChartGuru.ChartBuilder
CreateBars(IEnumerable, Func<T, float>, Func<T, float>, Action<BarMark, T>)
Section titled “CreateBars(IEnumerable, Func<T, float>, Func<T, float>, Action<BarMark, T>)”public static ChartBuilder CreateBars<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector, Action<BarMark, T> configure = null)Creates a bar builder from numeric X/Y projections and optionally customizes each generated mark.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},System.Single} |
ySelector | System.Func{{T},System.Single} |
configure | System.Action{ChartGuru.BarMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateBars(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<BarMark, T>)
Section titled “CreateBars(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<BarMark, T>)”public static ChartBuilder CreateBars<T>(IEnumerable<T> data, Func<T, PlottableValueRef> xSelector, Func<T, PlottableValueRef> ySelector, Func<T, PlottableValueRef> seriesSelector = null, Action<BarMark, T> configure = null)Creates a bar builder from semantic X/Y projections, inferring categorical orientation and optional series grouping.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
ySelector | System.Func{{T},ChartGuru.PlottableValueRef} |
seriesSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
configure | System.Action{ChartGuru.BarMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateLine(IEnumerable, Func<T, float>, Func<T, string>, Action<LineMark, T, int>)
Section titled “CreateLine(IEnumerable, Func<T, float>, Func<T, string>, Action<LineMark, T, int>)”public static ChartBuilder CreateLine<T>(IEnumerable<T> data, Func<T, float> ySelector, Func<T, string> categoryLabelSelector, Action<LineMark, T, int> configure = null)Creates a line builder using source order for X positions, selected Y values, and selected category labels.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
ySelector | System.Func{{T},System.Single} |
categoryLabelSelector | System.Func{{T},System.String} |
configure | System.Action{ChartGuru.LineMark,{T},System.Int32} |
Returns
ChartGuru.ChartBuilder
CreateLine(IEnumerable, Func<T, float>, Func<T, float>, Action<LineMark, T>)
Section titled “CreateLine(IEnumerable, Func<T, float>, Func<T, float>, Action<LineMark, T>)”public static ChartBuilder CreateLine<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector, Action<LineMark, T> configure = null)Creates a line builder from numeric X/Y projections and optionally customizes each generated mark.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},System.Single} |
ySelector | System.Func{{T},System.Single} |
configure | System.Action{ChartGuru.LineMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateLine(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<LineMark, T>)
Section titled “CreateLine(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<LineMark, T>)”public static ChartBuilder CreateLine<T>(IEnumerable<T> data, Func<T, PlottableValueRef> xSelector, Func<T, PlottableValueRef> ySelector, Func<T, PlottableValueRef> seriesSelector = null, Action<LineMark, T> configure = null)Creates a line builder from semantic X/Y projections with optional series grouping and per-mark customization.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
ySelector | System.Func{{T},ChartGuru.PlottableValueRef} |
seriesSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
configure | System.Action{ChartGuru.LineMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreatePoints(IEnumerable, Func<T, float>, Func<T, string>, Action<PointMark, T, int>)
Section titled “CreatePoints(IEnumerable, Func<T, float>, Func<T, string>, Action<PointMark, T, int>)”public static ChartBuilder CreatePoints<T>(IEnumerable<T> data, Func<T, float> ySelector, Func<T, string> categoryLabelSelector, Action<PointMark, T, int> configure = null)Creates a point-chart builder using source order for X positions, selected Y values, and category labels.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
ySelector | System.Func{{T},System.Single} |
categoryLabelSelector | System.Func{{T},System.String} |
configure | System.Action{ChartGuru.PointMark,{T},System.Int32} |
Returns
ChartGuru.ChartBuilder
CreatePoints(IEnumerable, Func<T, float>, Func<T, float>, Action<PointMark, T>)
Section titled “CreatePoints(IEnumerable, Func<T, float>, Func<T, float>, Action<PointMark, T>)”public static ChartBuilder CreatePoints<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector, Action<PointMark, T> configure = null)Creates a point-chart builder from numeric X/Y projections and optionally customizes each point mark.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},System.Single} |
ySelector | System.Func{{T},System.Single} |
configure | System.Action{ChartGuru.PointMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreatePoints(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<PointMark, T>)
Section titled “CreatePoints(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<PointMark, T>)”public static ChartBuilder CreatePoints<T>(IEnumerable<T> data, Func<T, PlottableValueRef> xSelector, Func<T, PlottableValueRef> ySelector, Func<T, PlottableValueRef> seriesSelector = null, Action<PointMark, T> configure = null)Creates a point-chart builder from semantic X/Y projections with optional series grouping.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
ySelector | System.Func{{T},ChartGuru.PlottableValueRef} |
seriesSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
configure | System.Action{ChartGuru.PointMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateArea(IEnumerable, Func<T, float>, Func<T, string>, Action<AreaMark, T, int>)
Section titled “CreateArea(IEnumerable, Func<T, float>, Func<T, string>, Action<AreaMark, T, int>)”public static ChartBuilder CreateArea<T>(IEnumerable<T> data, Func<T, float> ySelector, Func<T, string> categoryLabelSelector, Action<AreaMark, T, int> configure = null)Creates an area-chart builder using source order for X positions, selected Y values, and category labels.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
ySelector | System.Func{{T},System.Single} |
categoryLabelSelector | System.Func{{T},System.String} |
configure | System.Action{ChartGuru.AreaMark,{T},System.Int32} |
Returns
ChartGuru.ChartBuilder
CreateArea(IEnumerable, Func<T, float>, Func<T, float>, Action<AreaMark, T>)
Section titled “CreateArea(IEnumerable, Func<T, float>, Func<T, float>, Action<AreaMark, T>)”public static ChartBuilder CreateArea<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector, Action<AreaMark, T> configure = null)Creates an area-chart builder from numeric X/Y projections and optionally customizes each area mark.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},System.Single} |
ySelector | System.Func{{T},System.Single} |
configure | System.Action{ChartGuru.AreaMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateArea(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<AreaMark, T>)
Section titled “CreateArea(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<AreaMark, T>)”public static ChartBuilder CreateArea<T>(IEnumerable<T> data, Func<T, PlottableValueRef> xSelector, Func<T, PlottableValueRef> ySelector, Func<T, PlottableValueRef> seriesSelector = null, Action<AreaMark, T> configure = null)Creates an area-chart builder from semantic X/Y projections with optional series grouping.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
ySelector | System.Func{{T},ChartGuru.PlottableValueRef} |
seriesSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
configure | System.Action{ChartGuru.AreaMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateArea(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<AreaMark, T>)
Section titled “CreateArea(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<AreaMark, T>)”public static ChartBuilder CreateArea<T>(IEnumerable<T> data, Func<T, PlottableValueRef> xSelector, Func<T, PlottableValueRef> yStartSelector, Func<T, PlottableValueRef> yEndSelector, Func<T, PlottableValueRef> seriesSelector = null, Action<AreaMark, T> configure = null)Creates a ranged area builder whose selected lower and upper Y values bound the fill for each X value.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
xSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
yStartSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
yEndSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
seriesSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
configure | System.Action{ChartGuru.AreaMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateSectors(IEnumerable, Func<T, float>, Func<T, string>, Action<SectorMark, T, int>)
Section titled “CreateSectors(IEnumerable, Func<T, float>, Func<T, string>, Action<SectorMark, T, int>)”public static ChartBuilder CreateSectors<T>(IEnumerable<T> data, Func<T, float> valueSelector, Func<T, string> categoryLabelSelector, Action<SectorMark, T, int> configure = null)Creates a pie-chart builder from selected angular values and category labels, with source-order indices passed to customization.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
valueSelector | System.Func{{T},System.Single} |
categoryLabelSelector | System.Func{{T},System.String} |
configure | System.Action{ChartGuru.SectorMark,{T},System.Int32} |
Returns
ChartGuru.ChartBuilder
CreateSectors(IEnumerable, Func<T, float>, Action<SectorMark, T>)
Section titled “CreateSectors(IEnumerable, Func<T, float>, Action<SectorMark, T>)”public static ChartBuilder CreateSectors<T>(IEnumerable<T> data, Func<T, float> valueSelector, Action<SectorMark, T> configure = null)Creates a pie-chart builder from selected angular values and optionally customizes each sector.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
valueSelector | System.Func{{T},System.Single} |
configure | System.Action{ChartGuru.SectorMark,{T}} |
Returns
ChartGuru.ChartBuilder
CreateSectors(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<SectorMark, T>)
Section titled “CreateSectors(IEnumerable, Func<T, PlottableValueRef>, Func<T, PlottableValueRef>, Action<SectorMark, T>)”public static ChartBuilder CreateSectors<T>(IEnumerable<T> data, Func<T, PlottableValueRef> angleSelector, Func<T, PlottableValueRef> categorySelector = null, Action<SectorMark, T> configure = null)Creates a pie-chart builder from semantic angle projections with optional categorical styling metadata.
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
angleSelector | System.Func{{T},ChartGuru.PlottableValueRef} |
categorySelector | System.Func{{T},ChartGuru.PlottableValueRef} |
configure | System.Action{ChartGuru.SectorMark,{T}} |
Returns
ChartGuru.ChartBuilder
CalculateLegendHeight(float, float)
Section titled “CalculateLegendHeight(float, float)”public float CalculateLegendHeight(float availableWidth, float scaleFactor = 1)Calculates legend height from the current chart data, theme, and resolved layout.
Parameters
| Name | Type |
|---|---|
availableWidth | System.Single |
scaleFactor | System.Single |
Returns
System.Single
CalculateLegendWidth(float, float)
Section titled “CalculateLegendWidth(float, float)”public float CalculateLegendWidth(float textScaleFactor = 1, float contentScaleFactor = 1)Calculates legend width from the current chart data, theme, and resolved layout.
Parameters
| Name | Type |
|---|---|
textScaleFactor | System.Single |
contentScaleFactor | System.Single |
Returns
System.Single
Compile()
Section titled “Compile()”public ResolvedChartSnapshot Compile()Compiles the current chart when needed and returns its latest immutable domains and layout snapshot.
Returns
ChartGuru.ResolvedChartSnapshot
CalculateLayout()
Section titled “CalculateLayout()”public void CalculateLayout()Calculates the layout metrics and plot area for the chart’s current size, data and configuration.
GetAccessibilitySummary()
Section titled “GetAccessibilitySummary()”public string GetAccessibilitySummary()Returns the explicit accessibility label, or a generated chart, mark, series, and axis summary.
Returns
System.String
GetAccessibilityDescriptor()
Section titled “GetAccessibilityDescriptor()”public ChartAccessibilityDescriptor GetAccessibilityDescriptor()Builds a platform-neutral descriptor containing axes, series, and every visible mark that was not explicitly hidden from assistive navigation.
Returns
ChartGuru.ChartAccessibilityDescriptor
GetAccessibleMarks()
Section titled “GetAccessibleMarks()”public IEnumerable<IChartMark> GetAccessibleMarks()Enumerates every visible mark except those explicitly hidden from assistive navigation and heat-map cells without a value, which draw nothing.
Returns
System.Collections.Generic.IEnumerable{ChartGuru.IChartMark}
SetDimension(ChartDimension)
Section titled “SetDimension(ChartDimension)”public void SetDimension(ChartDimension dim)Set the chart dimension (2D or 3D). Promoted to public so add-ons (e.g.
ChartGuru.3D) can flip a chart between modes and drive the
2D ↔ 3D morph recipes.
Parameters
| Name | Type |
|---|---|
dim | ChartGuru.ChartDimension |
SetGestureFactory(Func<ChartProxy, ChartGesture>)
Section titled “SetGestureFactory(Func<ChartProxy, ChartGesture>)”public void SetGestureFactory(Func<ChartProxy, ChartGesture> factory)Sets the custom gesture used by a bound chart host. Controllers adopt the new factory on the next input event; null restores automatic gestures.
Parameters
| Name | Type |
|---|---|
factory | System.Func{ChartGuru.ChartProxy,ChartGuru.ChartGesture} |
AddMark(IChartMark)
Section titled “AddMark(IChartMark)”public void AddMark(IChartMark mark)Adds mark to this Chart and preserves its order for subsequent chart layout.
Parameters
| Name | Type |
|---|---|
mark | ChartGuru.IChartMark |
AddMarks(IEnumerable)
Section titled “AddMarks(IEnumerable)”public void AddMarks(IEnumerable<IChartMark> marks)Adds marks to this Chart and preserves its order for subsequent chart layout.
Parameters
| Name | Type |
|---|---|
marks | System.Collections.Generic.IEnumerable{ChartGuru.IChartMark} |
ClearMarks()
Section titled “ClearMarks()”public void ClearMarks()Clears marks from this Chart without changing unrelated configuration.
SetData(IEnumerable)
Section titled “SetData(IEnumerable)”public void SetData(IEnumerable<IChartMark> newMarks)Updates the chart data with new marks. If Chart.Animation is non-null,
a smooth animation interpolates from old to new values. Matches Swift Charts:
you opt in by setting chart.Animation = Animation.Default (or using
Chart.SetData(IEnumerable<IChartMark>, Animation?)).
Parameters
| Name | Type |
|---|---|
newMarks | System.Collections.Generic.IEnumerable{ChartGuru.IChartMark} |
SetData(IEnumerable, Animation?)
Section titled “SetData(IEnumerable, Animation?)”public void SetData(IEnumerable<IChartMark> newMarks, Animation? oneShotAnimation)Updates the chart data and animates the transition with a one-shot animation
override. Equivalent to SwiftUI's withAnimation(_:):
chart.SetData(marks, Animation.Spring());Pass null to apply instantly regardless of Chart.Animation.
Note: animation only runs when transitioning between two non-empty mark sets.
The very first load (previous marks were empty) snaps to its target values so
that hosts like ChartGraphic can opt in to the
zero→values entry animation explicitly via
Chart.ReplayEntryAnimation(Animation?) when their "Animate On Start"
flag is set, instead of every chart implicitly animating in on launch.
Parameters
| Name | Type |
|---|---|
newMarks | System.Collections.Generic.IEnumerable{ChartGuru.IChartMark} |
oneShotAnimation | System.Nullable{ChartGuru.Animation} |
SetValues(IEnumerable)
Section titled “SetValues(IEnumerable)”public void SetValues(IEnumerable<float> newValues)Updates the Y values of existing marks. If Chart.Animation is non-null,
the change is animated. The number of values must match the number of marks.
Parameters
| Name | Type |
|---|---|
newValues | System.Collections.Generic.IEnumerable{System.Single} |
SetValues(IReadOnlyList)
Section titled “SetValues(IReadOnlyList)”public void SetValues(IReadOnlyList<float> newValues)Updates the Y values of existing marks without copying the source list.
Parameters
| Name | Type |
|---|---|
newValues | System.Collections.Generic.IReadOnlyList{System.Single} |
SetValues(float[])
Section titled “SetValues(float[])”public void SetValues(float[] newValues)Updates the Y values of existing marks from an array without interface dispatch or copying.
Parameters
| Name | Type |
|---|---|
newValues | System.Single[] |
SetValues(float[], int)
Section titled “SetValues(float[], int)”public void SetValues(float[] newValues, int count)Updates the first count Y values of existing marks without copying the source array.
Parameters
| Name | Type |
|---|---|
newValues | System.Single[] |
count | System.Int32 |
SetValues(IEnumerable, Animation?)
Section titled “SetValues(IEnumerable, Animation?)”public void SetValues(IEnumerable<float> newValues, Animation? oneShotAnimation)Animated variant with a one-shot animation override.
Parameters
| Name | Type |
|---|---|
newValues | System.Collections.Generic.IEnumerable{System.Single} |
oneShotAnimation | System.Nullable{ChartGuru.Animation} |
SetValues(IReadOnlyList, Animation?)
Section titled “SetValues(IReadOnlyList, Animation?)”public void SetValues(IReadOnlyList<float> newValues, Animation? oneShotAnimation)Animated variant with a one-shot animation override.
Parameters
| Name | Type |
|---|---|
newValues | System.Collections.Generic.IReadOnlyList{System.Single} |
oneShotAnimation | System.Nullable{ChartGuru.Animation} |
SetValues(float[], Animation?)
Section titled “SetValues(float[], Animation?)”public void SetValues(float[] newValues, Animation? oneShotAnimation)Array-specialized animated variant with a one-shot animation override.
Parameters
| Name | Type |
|---|---|
newValues | System.Single[] |
oneShotAnimation | System.Nullable{ChartGuru.Animation} |
SetValues(float[], int, Animation?)
Section titled “SetValues(float[], int, Animation?)”public void SetValues(float[] newValues, int count, Animation? oneShotAnimation)Animated variant with a one-shot animation override.
Parameters
| Name | Type |
|---|---|
newValues | System.Single[] |
count | System.Int32 |
oneShotAnimation | System.Nullable{ChartGuru.Animation} |
ReplayEntryAnimation(Animation?)
Section titled “ReplayEntryAnimation(Animation?)”public void ReplayEntryAnimation(Animation? animation = null)Restarts the chart’s entry transition with an optional animation override, without replacing marks or data.
Parameters
| Name | Type |
|---|---|
animation | System.Nullable{ChartGuru.Animation} |
SkipPendingAnimation()
Section titled “SkipPendingAnimation()”public void SkipPendingAnimation()Cancels any pending value animation queued by a prior Chart.SetData(IEnumerable<IChartMark>)
or Chart.ReplayEntryAnimation(Animation?) call so the next render snaps to
the current target values instead of animating from zero / previous values.
Used by component hosts to honor “Animate On Start = false” while still letting
later data-change animations play normally.
CalculateYAxisWidth(float)
Section titled “CalculateYAxisWidth(float)”public float CalculateYAxisWidth(float scaleFactor = 1)Estimates automatic side-axis label width from the current data and theme, before any fixed axis reservation.
Parameters
| Name | Type |
|---|---|
scaleFactor | System.Single |
Returns
System.Single
CalculateXAxisLabelHeight(float, float)
Section titled “CalculateXAxisLabelHeight(float, float)”public float CalculateXAxisLabelHeight(float scaleFactor = 1, float availableWidth = -1)Estimates automatic bottom-axis label height from the current data and theme, before any fixed axis reservation.
Parameters
| Name | Type |
|---|---|
scaleFactor | System.Single |
availableWidth | System.Single |
Returns
System.Single
TransformY(float)
Section titled “TransformY(float)”public float TransformY(float rawValue)Transforms a raw Y data value into the axis coordinate space used by
Chart.EffectiveYDomain and all internal layout/projection math.
Identity for linear axes, log_b(value) for logarithmic axes.
Parameters
| Name | Type |
|---|---|
rawValue | System.Single |
Returns
System.Single
InverseTransformY(float)
Section titled “InverseTransformY(float)”public float InverseTransformY(float transformed)Inverse of Chart.TransformY(float): maps an axis-space value back to raw
data space. Used for tick labels and tooltip readouts on log axes.
Parameters
| Name | Type |
|---|---|
transformed | System.Single |
Returns
System.Single
TransformX(float)
Section titled “TransformX(float)”public float TransformX(float rawValue)Transforms a raw X data value into the axis coordinate space used by Chart.EffectiveXDomain and all 2D
layout and projection math: log_b(value) for a logarithmic X axis, the forward mapping of a custom scale
transformer, and the identity otherwise. 3D charts keep raw domains because their own scales transform.
Parameters
| Name | Type |
|---|---|
rawValue | System.Single |
Returns
System.Single
InverseTransformX(float)
Section titled “InverseTransformX(float)”public float InverseTransformX(float transformed)Inverse of Chart.TransformX(float): maps an axis-space X value back to raw data space, for tick labels, tooltip
readouts and selections on a logarithmic X axis.
Parameters
| Name | Type |
|---|---|
transformed | System.Single |
Returns
System.Single
NormalizeY(float)
Section titled “NormalizeY(float)”public float NormalizeY(float rawValue)Convenience: maps a raw Y value to a [0..1] normalized position along the effective Y domain.
Parameters
| Name | Type |
|---|---|
rawValue | System.Single |
Returns
System.Single
ClearSelection()
Section titled “ClearSelection()”public void ClearSelection()Clears the current selection.
MarkDirty(DirtyFlags)
Section titled “MarkDirty(DirtyFlags)”public void MarkDirty(DirtyFlags flags)Marks the selected data, style, layout, legend, animation or highlight stages for recomputation before the
next render. Every call advances Chart.Revision; a call with only DirtyFlags.Highlight
keeps the compiled Chart.Specification and layout.
Parameters
| Name | Type |
|---|---|
flags | ChartGuru.DirtyFlags |
ClearDirty()
Section titled “ClearDirty()”public void ClearDirty()Clears dirty from this Chart without changing unrelated configuration.
ClearDirty(DirtyFlags)
Section titled “ClearDirty(DirtyFlags)”public void ClearDirty(DirtyFlags flags)Clears dirty from this Chart without changing unrelated configuration.
Parameters
| Name | Type |
|---|---|
flags | ChartGuru.DirtyFlags |
MorphTo(ChartType)
Section titled “MorphTo(ChartType)”public Chart MorphTo(ChartType targetType)Morphs to targetType with the default MorphOptions.
Parameters
| Name | Type |
|---|---|
targetType | ChartGuru.ChartType |
Returns
ChartGuru.Chart
MorphTo(ChartType, MorphOptions)
Section titled “MorphTo(ChartType, MorphOptions)”public Chart MorphTo(ChartType targetType, MorphOptions options)Switches to targetType and asks the renderer to morph the marks from the current
type on its next tick. Null options uses the defaults.
Parameters
| Name | Type |
|---|---|
targetType | ChartGuru.ChartType |
options | ChartGuru.MorphOptions |
Returns
ChartGuru.Chart
Dispose()
Section titled “Dispose()”public void Dispose()Releases resources owned by this Chart; callers should not use the instance afterward.
Constructors
Section titled “Constructors”
Chart()
Section titled “Chart()”public Chart()Properties
Section titled “Properties”
PreserveXAxisHeightAcrossZoom
Section titled “PreserveXAxisHeightAcrossZoom”public bool PreserveXAxisHeightAcrossZoom { get; set; }When true, layout caches the largest X-axis label height observed across zoom
changes and uses the cached value instead of re-measuring. Prevents the plot area
from shifting vertically as shorter labels appear at higher zoom levels.
Swift Charts equivalent: .ChartXAxisPreserveHeightAcrossZoom(true).
Returns
System.Boolean
AlignsMarkStylesWithPlotArea
Section titled “AlignsMarkStylesWithPlotArea”public bool AlignsMarkStylesWithPlotArea { get; set; }Controls whether gradient/fill mark styles align to the plot area coordinate
space (true) or to each mark’s own bounding box (false).
Swift Charts equivalent: .AlignsMarkStylesWithPlotArea(Bool).
Returns
System.Boolean
AccessibilityAudioGraphEnabled
Section titled “AccessibilityAudioGraphEnabled”public bool AccessibilityAudioGraphEnabled { get; set; }When true, the chart participates in audio-graph / sonification accessibility export.
Swift Charts equivalent: AXChartDescriptorRepresentable conformance.
Returns
System.Boolean
ScrollTargetBehavior
Section titled “ScrollTargetBehavior”public ChartScrollTargetBehavior ScrollTargetBehavior { get; set; }Snapping behavior applied when programmatic scroll APIs settle on a new origin.
Swift Charts equivalent: .ChartScrollTargetBehavior(.valueAligned(…)).
Returns
ChartGuru.ChartScrollTargetBehavior
public IReadOnlyList<IChartMark> Marks { get; }Returns
System.Collections.Generic.IReadOnlyList{ChartGuru.IChartMark}
MarksInZOrder
Section titled “MarksInZOrder”public IReadOnlyList<IChartMark> MarksInZOrder { get; }Returns marks in emit order: stable-sorted by ChartMark.ZIndex
(ascending), with ties broken by insertion order. When no mark overrides
its ZIndex the original list is returned unchanged, avoiding any allocation.
Renderers that honor ZIndex(_:) should iterate Chart.MarksInZOrder
instead of Chart.Marks.
Returns
System.Collections.Generic.IReadOnlyList{ChartGuru.IChartMark}
Composition
Section titled “Composition”public MarkComposition Composition { get; }Snapshot of which mark kinds are present (Bar / Line / Point / Area /
Candlestick / Sector / Rule / Rectangle). Drives renderer and layout-engine
dispatch so that mixed compositions (e.g. LineMark +
PointMark, BarMark + LineMark)
render every kind without per-Chart.ChartType special cases.
Returns
ChartGuru.MarkComposition
ProjectionFamily
Section titled “ProjectionFamily”public ProjectionFamily ProjectionFamily { get; }Coarse projection family this chart renders into: Cartesian (X/Y plot),
Polar (pie/donut), Radial (radar), or Indicator. Resolved from
Chart.ChartType first, with a composition-driven fallback when
Chart.ChartType is the default Bar but no bar marks are present.
Returns
ChartGuru.ProjectionFamily
Series
Section titled “Series”public SeriesCollection Series { get; }Marks the cached Chart.Composition as stale. Called from every
internal mark-list mutation path.
Returns
ChartGuru.SeriesCollection
public ChartTheme Theme { get; set; }Returns
ChartGuru.ChartTheme
public AxisConfig XAxis { get; set; }Returns
ChartGuru.AxisConfig
public AxisConfig YAxis { get; set; }Returns
ChartGuru.AxisConfig
Legend
Section titled “Legend”public LegendConfig Legend { get; set; }Returns
ChartGuru.LegendConfig
Animation
Section titled “Animation”public Animation? Animation { get; set; }Animation used when chart values change. null (the default) applies
value changes instantly, matching Swift Charts which requires explicit
withAnimation to animate.
Returns
System.Nullable{ChartGuru.Animation}
Remarks
Setting this property only configures the animation used by future data/value
changes: it never spawns an animation on its own. This mirrors SwiftUI, where
attaching .Animation(_:value:) doesn’t replay anything until the observed
value actually changes. Use Chart.ReplayEntryAnimation(Animation?) if you
explicitly want to re-run the entry animation.
HasExplicitAuthoringStyle
Section titled “HasExplicitAuthoringStyle”public bool HasExplicitAuthoringStyle { get; }Whether an Chart.AuthoringStyle has been explicitly assigned.
Programmatic charts built via Chart.Create(…).Build() never set
this, so the inspector should derive style fields from mark properties
instead of from the default authoring style.
Returns
System.Boolean
AuthoringStyle
Section titled “AuthoringStyle”public ChartAuthoringStyleOptions AuthoringStyle { get; set; }Returns
ChartGuru.ChartAuthoringStyleOptions
TinyConfig
Section titled “TinyConfig”public TinyChartConfig TinyConfig { get; }Returns
ChartGuru.TinyChartConfig
LayoutMetrics
Section titled “LayoutMetrics”public LayoutMetrics LayoutMetrics { get; }Current layout metrics computed during CalculateLayout(). Contains scaled font sizes and space allocations for each layout layer.
Returns
ChartGuru.LayoutMetrics
ForegroundStyleScale
Section titled “ForegroundStyleScale”public IReadOnlyDictionary<object, Color> ForegroundStyleScale { get; }Custom color scale for automatic series color assignment. Swift Charts equivalent: .ChartForegroundStyleScale([…])
Returns
System.Collections.Generic.IReadOnlyDictionary{System.Object,UnityEngine.Color}
ForegroundGradientScale
Section titled “ForegroundGradientScale”public IReadOnlyDictionary<object, LinearGradientStyle> ForegroundGradientScale { get; }Gradients per series or style key, drawn across every mark of that key that has no gradient of its own. Swift Charts equivalent: .ChartForegroundStyleScale([“A”: .linearGradient(…)])
Returns
System.Collections.Generic.IReadOnlyDictionary{System.Object,ChartGuru.LinearGradientStyle}
ColorScale
Section titled “ColorScale”public ColorScale ColorScale { get; }Continuous color scale for mapping numeric ForegroundStyleKey values to colors. Swift Charts equivalent: .ChartForegroundStyleScale(range: Gradient(…))
Returns
ChartGuru.ColorScale
SymbolScale
Section titled “SymbolScale”public IReadOnlyDictionary<object, SymbolShape> SymbolScale { get; }Custom symbol scale for automatic series symbol assignment. Swift Charts equivalent: .ChartSymbolScale([…])
Returns
System.Collections.Generic.IReadOnlyDictionary{System.Object,ChartGuru.SymbolShape}
PlotStyle
Section titled “PlotStyle”public PlotStyleConfig PlotStyle { get; set; }Plot area styling configuration. Swift Charts equivalent: .chartPlotStyle { }
Returns
ChartGuru.PlotStyleConfig
BarWidth
Section titled “BarWidth”public MarkDimension BarWidth { get; set; }Chart-level default bar width as a Swift Charts MarkDimension.
Per-mark BarMark.Width(MarkDimension) overrides this; if both are
.automatic the renderer falls back to Swift’s 0.8 step ratio.
Swift Charts equivalent: .ChartBarWidth(.ratio(0.8)).
Returns
ChartGuru.MarkDimension
BarHeight
Section titled “BarHeight”public MarkDimension BarHeight { get; set; }Chart-level default bar height as a Swift Charts MarkDimension.
Used by horizontal bars; per-mark BarMark.Height(MarkDimension) wins.
Returns
ChartGuru.MarkDimension
FlattenDivergingBarBaseline
Section titled “FlattenDivergingBarBaseline”public bool FlattenDivergingBarBaseline { get; set; }When true, bars in a Standard diverging stack (positive + negative for the same category) use flat edges at the baseline where they meet, rounding only the outer end. When false (default), both ends are rounded matching Swift Charts behavior.
Returns
System.Boolean
ChartBorder
Section titled “ChartBorder”public ChartBorderConfig ChartBorder { get; set; }Border drawn around the entire chart area (outside all content).
Returns
ChartGuru.ChartBorderConfig
ChartBackground
Section titled “ChartBackground”public Color? ChartBackground { get; set; }Chart background color. Swift Charts equivalent: .chartBackground { }
Returns
System.Nullable{UnityEngine.Color}
ChartBackgroundGradient
Section titled “ChartBackgroundGradient”public Gradient ChartBackgroundGradient { get; }Chart background gradient.
Returns
UnityEngine.Gradient
ChartBackgroundMode
Section titled “ChartBackgroundMode”public ChartBackgroundMode ChartBackgroundMode { get; set; }Controls how the chart-level background is rendered: solid colour, linear
gradient (with user-selectable direction via Chart.ChartBackgroundLinearGradient),
or a four-corner gradient via Chart.ChartBackgroundFourCorner. When
ChartBackgroundMode.SolidColor, the Chart.ChartBackground
colour or Chart.ChartBackgroundGradient (legacy direction-less Unity Gradient)
is used.
Returns
ChartGuru.ChartBackgroundMode
ChartBackgroundLinearGradient
Section titled “ChartBackgroundLinearGradient”public LinearGradientStyle ChartBackgroundLinearGradient { get; set; }Linear gradient (with direction) used for the chart background when
Chart.ChartBackgroundMode is ChartBackgroundMode.LinearGradient.
Returns
ChartGuru.LinearGradientStyle
ChartBackgroundFourCorner
Section titled “ChartBackgroundFourCorner”public FourCornerGradient? ChartBackgroundFourCorner { get; set; }Four-corner gradient used for the chart background when
Chart.ChartBackgroundMode is ChartBackgroundMode.FourCornerGradient.
Returns
System.Nullable{ChartGuru.FourCornerGradient}
DataLabelColor
Section titled “DataLabelColor”public Color? DataLabelColor { get; set; }Optional explicit colour for data-label text. When null the active
theme’s ChartTheme.TextColor is used (subject to auto-contrast).
Returns
System.Nullable{UnityEngine.Color}
AxisLabelColor
Section titled “AxisLabelColor”public Color? AxisLabelColor { get; set; }Optional explicit colour for axis-label text (X/Y tick labels and radar
ring/spoke labels). When null the active theme’s
ChartTheme.TextColor is used. Useful to keep ring-tick
values from competing with data labels on radar charts; set a
muted/lighter colour to push them visually behind the data.
Returns
System.Nullable{UnityEngine.Color}
OverlayCallback
Section titled “OverlayCallback”public Action<ChartProxy> OverlayCallback { get; }Callback for overlay interactions. Swift Charts equivalent: .chartOverlay { proxy in }
Returns
System.Action{ChartGuru.ChartProxy}
BackgroundCallback
Section titled “BackgroundCallback”public Action<ChartProxy> BackgroundCallback { get; }Callback invoked to draw a custom chart Background (behind all marks) with access
to the ChartProxy. Runs after the solid color / gradient background.
Swift Charts equivalent: .chartBackground { proxy in … }
Returns
System.Action{ChartGuru.ChartProxy}
LineStyleScale
Section titled “LineStyleScale”public IReadOnlyDictionary<object, StrokeStyle> LineStyleScale { get; }Custom line style scale for automatic series line style assignment. Swift Charts equivalent: .ChartLineStyleScale([…])
Returns
System.Collections.Generic.IReadOnlyDictionary{System.Object,ChartGuru.StrokeStyle}
SymbolSizeScale
Section titled “SymbolSizeScale”public IReadOnlyDictionary<object, float> SymbolSizeScale { get; }Custom symbol size scale for automatic series symbol size assignment. Swift Charts equivalent: .ChartSymbolSizeScale([…])
Returns
System.Collections.Generic.IReadOnlyDictionary{System.Object,System.Single}
GestureFactory
Section titled “GestureFactory”public Func<ChartProxy, ChartGesture> GestureFactory { get; }Gesture factory for custom interaction handling. Swift Charts equivalent: .chartGesture { proxy in }
Returns
System.Func{ChartGuru.ChartProxy,ChartGuru.ChartGesture}
XScaleType
Section titled “XScaleType”public ScaleType? XScaleType { get; }Scale type for X axis. Swift Charts equivalent: .ChartXScale(domain:type:)
Returns
System.Nullable{ChartGuru.ScaleType}
YScaleType
Section titled “YScaleType”public ScaleType? YScaleType { get; }Scale type for Y axis. Swift Charts equivalent: .ChartYScale(domain:type:)
Returns
System.Nullable{ChartGuru.ScaleType}
XScaleRange
Section titled “XScaleRange”public ClosedRange<float>? XScaleRange { get; }Output range for X scale. Swift Charts equivalent: .ChartXScale(range:)
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
YScaleRange
Section titled “YScaleRange”public ClosedRange<float>? YScaleRange { get; }Output range for Y scale. Swift Charts equivalent: .ChartYScale(range:)
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
ExplicitXDomain
Section titled “ExplicitXDomain”public ClosedRange<float>? ExplicitXDomain { get; }Explicit data domain override for X scale. Swift Charts equivalent: .ChartXScale(domain:)
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
ExplicitYDomain
Section titled “ExplicitYDomain”public ClosedRange<float>? ExplicitYDomain { get; }Explicit data domain override for Y scale. Swift Charts equivalent: .ChartYScale(domain:)
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
ChartType
Section titled “ChartType”public ChartType ChartType { get; set; }Returns
ChartGuru.ChartType
Dimension
Section titled “Dimension”public ChartDimension Dimension { get; }Returns
ChartGuru.ChartDimension
DirtyFlags
Section titled “DirtyFlags”public DirtyFlags DirtyFlags { get; }Returns
ChartGuru.DirtyFlags
PlotArea
Section titled “PlotArea”public Rect PlotArea { get; }Returns
UnityEngine.Rect
IsTiny
Section titled “IsTiny”public bool IsTiny { get; }Returns true if this is a compact/tiny chart type (Sparkline, MiniBar, MiniPie, MiniDonut, Indicator). Horizontal orientation does not affect tininess; a MiniBar with horizontal orientation is still tiny.
Returns
System.Boolean
PreferredBarLayout
Section titled “PreferredBarLayout”public BarLayout PreferredBarLayout { get; set; }Default bar orientation when the chart has no BarMarks yet.
Authoring surfaces (designer/inspector) write this from a serialized
“Bar Orientation” field; the data source then materializes BarMarks with
matching BarMark.Layout. Once any BarMark is present,
Chart.IsHorizontalBar derives directly from mark layouts.
Returns
ChartGuru.BarLayout
IsHorizontalBar
Section titled “IsHorizontalBar”public bool IsHorizontalBar { get; }True when this chart lays out horizontally (value axis = X, category
axis = Y): its bars, or without bars its points, sit in category rows.
Mirrors Swift Charts’ rule that the orientation emerges from a
categorical-Y / numeric-X data binding: the answer is derived from the
marks whenever they decide it (see ChartGuru.Chart.ResolveHorizontalMarks(System.Collections.Generic.IReadOnlyList<ChartGuru.IChartMark>)),
falling back to Chart.PreferredBarLayout otherwise. This keeps the
orientation source-of-truth on the data, not on a chart-type variant.
Returns
System.Boolean
IsBuilt
Section titled “IsBuilt”public bool IsBuilt { get; }Returns
System.Boolean
public Vector2 Size { get; set; }Returns
UnityEngine.Vector2
ShowAxisTitles
Section titled “ShowAxisTitles”public bool ShowAxisTitles { get; set; }Controls whether axis titles are shown and affect layout. When false, axis title space is reclaimed for the chart.
Returns
System.Boolean
ShowAxisLabels
Section titled “ShowAxisLabels”public bool ShowAxisLabels { get; set; }Controls whether axis labels are shown and affect layout. When false, axis label space is reclaimed for the chart.
Returns
System.Boolean
AutoContrastText
Section titled “AutoContrastText”public bool AutoContrastText { get; set; }Switches data and axis label colors for contrast against the mark or background behind them.
Returns
System.Boolean
ShowDataLabels
Section titled “ShowDataLabels”public bool ShowDataLabels { get; set; }Controls whether data labels are shown and affect layout. When true, extra margin is reserved for labels above/beside data points.
Returns
System.Boolean
DataLabelFormat
Section titled “DataLabelFormat”public string DataLabelFormat { get; set; }Format string for data labels (e.g. “{Value(F0)}k”, “{percent}”). When set on the Chart, ChartGraphic picks it up during sync.
Returns
System.String
PieLabelMode
Section titled “PieLabelMode”public PieLabelMode PieLabelMode { get; set; }Returns
ChartGuru.PieLabelMode
SelectionIndicatorStyle
Section titled “SelectionIndicatorStyle”public SelectionIndicatorStyle SelectionIndicatorStyle { get; set; }Style for selection/hover indicators.
Returns
ChartGuru.SelectionIndicatorStyle
ChartTitle
Section titled “ChartTitle”public string ChartTitle { get; set; }Optional chart title text. When non-empty, the title block is rendered.
Returns
System.String
AccessibilityLabel
Section titled “AccessibilityLabel”public string AccessibilityLabel { get; set; }Chart-level accessibility label / summary. Swift Charts equivalent:
ChartAccessibilityLabel(:) / ChartAccessibilityRepresentation(:).
When unset, Chart.GetAccessibilitySummary() falls back to a generated
description derived from Chart.ChartTitle, mark count, and series count.
Returns
System.String
AccessibilityDescription
Section titled “AccessibilityDescription”public string AccessibilityDescription { get; set; }Optional secondary accessibility description (Swift’s chartAccessibilityRepresentation).
Returns
System.String
ChartSubtitle
Section titled “ChartSubtitle”public string ChartSubtitle { get; set; }Returns an accessibility summary for the chart. If
Chart.AccessibilityLabel is set it wins; otherwise a fallback is
generated from the chart title/marks.
Returns
System.String
ChartTitlePosition
Section titled “ChartTitlePosition”public ChartTitlePosition ChartTitlePosition { get; set; }Position and alignment of the chart title/subtitle block. Encodes both vertical (top/bottom) and horizontal (leading/center/trailing) placement.
Returns
ChartGuru.ChartTitlePosition
HasChartTitle
Section titled “HasChartTitle”public bool HasChartTitle { get; }Returns true when either the chart title or subtitle has text content.
Returns
System.Boolean
ChartTitleIsTop
Section titled “ChartTitleIsTop”public bool ChartTitleIsTop { get; }Returns true when the title block is positioned at the top of the chart.
Returns
System.Boolean
IsMorphing
Section titled “IsMorphing”public bool IsMorphing { get; }True from Chart.MorphTo(ChartType, MorphOptions) until the renderer starts the morph.
Returns
System.Boolean
TooltipConfiguration
Section titled “TooltipConfiguration”public ChartTooltipConfiguration TooltipConfiguration { get; set; }Controls built-in and custom tooltip content, interaction, and presentation.
Returns
ChartGuru.ChartTooltipConfiguration
Revision
Section titled “Revision”public long Revision { get; }Monotonically increasing version of mutable authoring, data and highlight state.
Returns
System.Int64
Specification
Section titled “Specification”public ChartSpec Specification { get; }Latest immutable authoring specification. Reading this property captures the current mutable chart state but does not perform layout.
Returns
ChartGuru.ChartSpec
HasResolvedSnapshot
Section titled “HasResolvedSnapshot”public bool HasResolvedSnapshot { get; }Whether a resolved compiler snapshot has been published for the current specification; highlight-only changes keep it.
Returns
System.Boolean
ResolvedSnapshot
Section titled “ResolvedSnapshot”public ResolvedChartSnapshot ResolvedSnapshot { get; }Latest resolved compiler snapshot. This property lazily compiles stale chart state so domain queries are correct immediately after build or data replacement.
Returns
ChartGuru.ResolvedChartSnapshot
public AxisConfig ZAxis { get; set; }Z axis configuration. Only used when Chart.Dimension is ChartDimension.ThreeD
or the Chart.ChartType is a 3D variant. Shares AxisConfig with X/Y.
Swift Charts equivalent: .chartZAxis { … }.
Returns
ChartGuru.AxisConfig
public Chart3DPose Pose { get; set; }Camera pose for 3D charts. No-op for 2D types.
Swift Charts equivalent: .Chart3DPose(_:).
Returns
ChartGuru.Chart3DPose
Projection
Section titled “Projection”public Chart3DCameraProjection Projection { get; set; }Camera projection mode for 3D charts.
Swift Charts equivalent: .Chart3DCameraProjection(_:).
Returns
ChartGuru.Chart3DCameraProjection
RotateEnabled
Section titled “RotateEnabled”public bool RotateEnabled { get; set; }Whether drag gestures should rotate the pose on 3D charts.
Returns
System.Boolean
SurfacePreset
Section titled “SurfacePreset”public Chart3DSurfacePreset SurfacePreset { get; set; }The base material of 3D marks. Explicit per-mark roughness and metalness override its surface values.
Returns
ChartGuru.Chart3DSurfacePreset
ExplicitZDomain
Section titled “ExplicitZDomain”public ClosedRange<float>? ExplicitZDomain { get; }Explicit data domain override for Z scale on 3D charts. Swift Charts equivalent: .chartZScale(domain:)
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
SelectedZValue
Section titled “SelectedZValue”public float? SelectedZValue { get; set; }Selected Z-axis value for Swift-Charts-3D chartZSelection flows.
Returns
System.Nullable{System.Single}
SelectedZRange
Section titled “SelectedZRange”public ClosedRange<float>? SelectedZRange { get; set; }Selected Z-range for brush/range selection interactions on 3D charts.
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
ZScaleType
Section titled “ZScaleType”public ScaleType? ZScaleType { get; }Scale type for the Z axis (3D charts only).
Returns
System.Nullable{ChartGuru.ScaleType}
ZScaleRange
Section titled “ZScaleRange”public ClosedRange<float>? ZScaleRange { get; }Output range for the Z scale (3D charts only).
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
DataZDomain
Section titled “DataZDomain”public ClosedRange<float> DataZDomain { get; }Data-derived Z domain.
Returns
ChartGuru.ClosedRange{System.Single}
EffectiveZDomain
Section titled “EffectiveZDomain”public ClosedRange<float> EffectiveZDomain { get; }Effective Z domain used for rendering.
Returns
ChartGuru.ClosedRange{System.Single}
ColorScalePresetIndex
Section titled “ColorScalePresetIndex”public int ColorScalePresetIndex { get; set; }Preferred color scale preset index (-1 = none/default Blue).
Used by the layout engine when auto-creating a color scale from data.
Indices: 0=Blue, 1=Viridis, 2=Heat, 3=Cool, 4=Warm, 5=Diverging, 6=Grayscale, 7=Magma, 8=Plasma, 9=Inferno,
10=Cividis, 11=Turbo. Viridis, magma, plasma, inferno, cividis and turbo evaluate their published tables
(see ChartColormap).
Returns
System.Int32
TransitionMapping
Section titled “TransitionMapping”public PointMapping TransitionMapping { get; set; }How animated data changes pair the marks shown before the change with the new ones. The default,
PointMapping.ByKey, follows each mark’s MarkKey, so marks keep their identity
when data is inserted, removed or reordered.
Returns
ChartGuru.PointMapping
ScrollableAxes
Section titled “ScrollableAxes”public ScrollableAxes ScrollableAxes { get; set; }Scrollable axis configuration for viewport-based charts.
Returns
ChartGuru.ScrollableAxes
XVisibleDomain
Section titled “XVisibleDomain”public ClosedRange<float>? XVisibleDomain { get; set; }Explicit X viewport domain.
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
YVisibleDomain
Section titled “YVisibleDomain”public ClosedRange<float>? YVisibleDomain { get; set; }Explicit Y viewport domain.
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
XVisibleDomainLength
Section titled “XVisibleDomainLength”public float? XVisibleDomainLength { get; set; }X viewport length in data units.
Returns
System.Nullable{System.Single}
YVisibleDomainLength
Section titled “YVisibleDomainLength”public float? YVisibleDomainLength { get; set; }Y viewport length in data units.
Returns
System.Nullable{System.Single}
ScrollPositionX
Section titled “ScrollPositionX”public float? ScrollPositionX { get; set; }Scroll origin for the X viewport.
Returns
System.Nullable{System.Single}
ScrollPositionY
Section titled “ScrollPositionY”public float? ScrollPositionY { get; set; }Scroll origin for the Y viewport.
Returns
System.Nullable{System.Single}
DataXDomain
Section titled “DataXDomain”public ClosedRange<float> DataXDomain { get; }Raw X data domain before viewport clipping.
Returns
ChartGuru.ClosedRange{System.Single}
DataYDomain
Section titled “DataYDomain”public ClosedRange<float> DataYDomain { get; }Raw Y data domain before viewport clipping.
Returns
ChartGuru.ClosedRange{System.Single}
EffectiveXDomain
Section titled “EffectiveXDomain”public ClosedRange<float> EffectiveXDomain { get; }Effective X domain used for rendering. Like Chart.EffectiveYDomain, a logarithmic X axis reports it in
axis-coordinate space (log_b of the raw bounds); see Chart.TransformX(float).
Returns
ChartGuru.ClosedRange{System.Single}
EffectiveYDomain
Section titled “EffectiveYDomain”public ClosedRange<float> EffectiveYDomain { get; }Effective Y domain used for rendering. Reported in axis-coordinate space:
for a logarithmic Y axis the bounds are log_b(rawMin) / log_b(rawMax),
not the raw data extents.
Returns
ChartGuru.ClosedRange{System.Single}
SelectionBand
Section titled “SelectionBand”public ChartSelectionBandStyle SelectionBand { get; set; }The chart-owned X band presentation. Assignments are cloned; editing this owned style redraws selection without changing data or layout.
Returns
ChartGuru.ChartSelectionBandStyle
SelectionLine
Section titled “SelectionLine”public ChartSelectionLineStyle SelectionLine { get; set; }The chart-owned selection guide style. Assignments are cloned; edits redraw selection without changing data or layout.
Returns
ChartGuru.ChartSelectionLineStyle
SelectionMarker
Section titled “SelectionMarker”public ChartSelectionMarkerStyle SelectionMarker { get; set; }The chart-owned selection marker style. Assignments are cloned; edits redraw selection without changing data or layout.
Returns
ChartGuru.ChartSelectionMarkerStyle
XSelectionEnabled
Section titled “XSelectionEnabled”public bool XSelectionEnabled { get; set; }Enables full-plot horizontal axis selection. Merely subscribing to selection events does not enable it.
Returns
System.Boolean
SelectedIndex
Section titled “SelectedIndex”public int SelectedIndex { get; set; }Returns
System.Int32
SelectedXValue
Section titled “SelectedXValue”public float? SelectedXValue { get; set; }Selected X-axis value for Swift Charts-style selection flows.
Returns
System.Nullable{System.Single}
SelectedYValue
Section titled “SelectedYValue”public float? SelectedYValue { get; set; }Selected Y-axis value for Swift Charts-style selection flows.
Returns
System.Nullable{System.Single}
SelectedAngleValue
Section titled “SelectedAngleValue”public float? SelectedAngleValue { get; set; }Selected angle value for pie/donut selection flows.
Returns
System.Nullable{System.Single}
SelectedXRange
Section titled “SelectedXRange”public ClosedRange<float>? SelectedXRange { get; set; }Selected X-range for brush/range selection interactions.
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
SelectedYRange
Section titled “SelectedYRange”public ClosedRange<float>? SelectedYRange { get; set; }Selected Y-range for brush/range selection interactions.
Returns
System.Nullable{ChartGuru.ClosedRange{System.Single}}
SelectionDimOpacity
Section titled “SelectionDimOpacity”public float SelectionDimOpacity { get; set; }Opacity for non-selected marks when Highlight, Rule or Lollipop selection is active (0-1). Chart Guru’s default is 0.3f. Swift Charts selection styling requires explicit view composition.
Returns
System.Single
HasSelection
Section titled “HasSelection”public bool HasSelection { get; }Returns true if a mark or an enabled horizontal axis value is currently selected.
Returns
System.Boolean
HoveredIndex
Section titled “HoveredIndex”public int HoveredIndex { get; set; }The currently hovered data point index, or -1 if nothing is hovered. Used for hover highlight effects.
Returns
System.Int32
HasHover
Section titled “HasHover”public bool HasHover { get; }Returns true if any data point is currently hovered.
Returns
System.Boolean
Events
Section titled “Events”
OnChartChanged
Section titled “OnChartChanged”public event Action<Chart> OnChartChangedRaised after chart data, configuration, layout, or presentation state changes.
Returns
System.Action{ChartGuru.Chart}
OnMorphComplete
Section titled “OnMorphComplete”public event Action<Chart, ChartType> OnMorphCompleteRaised with the target chart type after an animated morph completes.
Returns
System.Action{ChartGuru.Chart,ChartGuru.ChartType}
OnPoseChanged
Section titled “OnPoseChanged”public event Action<Chart> OnPoseChangedRaised when Chart.Pose or Chart.Projection changes (3D charts).
Returns
System.Action{ChartGuru.Chart}
OnZSelectionChanged
Section titled “OnZSelectionChanged”public event Action<float?> OnZSelectionChangedRaised when Chart.SelectedZValue changes (3D charts).
Returns
System.Action{System.Nullable{System.Single}}
OnZRangeSelectionChanged
Section titled “OnZRangeSelectionChanged”public event Action<ClosedRange<float>?> OnZRangeSelectionChangedRaised when Chart.SelectedZRange changes (3D charts).
Returns
System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}
OnSelectionChanged
Section titled “OnSelectionChanged”public event Action<Chart, int> OnSelectionChangedRaised with the selected mark index after selection changes.
Returns
System.Action{ChartGuru.Chart,System.Int32}
OnHoverChanged
Section titled “OnHoverChanged”public event Action<Chart, int> OnHoverChangedRaised with the hovered mark index, or -1 when no mark is hovered.
Returns
System.Action{ChartGuru.Chart,System.Int32}
OnXSelectionChanged
Section titled “OnXSelectionChanged”public event Action<float?> OnXSelectionChangedRaised when the selected horizontal value changes or is cleared.
Returns
System.Action{System.Nullable{System.Single}}
OnYSelectionChanged
Section titled “OnYSelectionChanged”public event Action<float?> OnYSelectionChangedRaised when the selected vertical value changes or is cleared.
Returns
System.Action{System.Nullable{System.Single}}
OnAngleSelectionChanged
Section titled “OnAngleSelectionChanged”public event Action<float?> OnAngleSelectionChangedRaised when the selected sector value changes or is cleared.
Returns
System.Action{System.Nullable{System.Single}}
OnXRangeSelectionChanged
Section titled “OnXRangeSelectionChanged”public event Action<ClosedRange<float>?> OnXRangeSelectionChangedRaised when the selected horizontal range changes or is cleared.
Returns
System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}
OnYRangeSelectionChanged
Section titled “OnYRangeSelectionChanged”public event Action<ClosedRange<float>?> OnYRangeSelectionChangedRaised when the selected vertical range changes or is cleared.
Returns
System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}