Skip to content

ChartBuilder

ClassChartGuruChartGuru
public class ChartBuilder

Builds a Chart through a Swift Charts-inspired fluent C# API. Add marks and modifiers, then call ChartBuilder.Build() to resolve defaults, categorical data, scales, layout, and interaction configuration.

public ChartBuilder Theme(ChartTheme theme)

Selects the theme whose colors, typography, and spacing provide defaults for the built chart.

Parameters

NameType
themeChartGuru.ChartTheme

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXAxis(Action<AxisBuilder> configure)

Configures the horizontal axis from a callback, snapshot, or visibility policy and returns this chart builder.

Parameters

NameType
configureSystem.Action{ChartGuru.AxisBuilder}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXAxisStyle(Action<AxisBuilder> configure)

Configures horizontal axis presentation through the supplied axis builder callback.

Parameters

NameType
configureSystem.Action{ChartGuru.AxisBuilder}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXAxis(AxisConfig config)

Configures the horizontal axis from a callback, snapshot, or visibility policy and returns this chart builder.

Parameters

NameType
configChartGuru.AxisConfig

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYAxis(Action<AxisBuilder> configure)

Configures the vertical axis from a callback, snapshot, or visibility policy and returns this chart builder.

Parameters

NameType
configureSystem.Action{ChartGuru.AxisBuilder}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYAxisStyle(Action<AxisBuilder> configure)

Configures vertical axis presentation through the supplied axis builder callback.

Parameters

NameType
configureSystem.Action{ChartGuru.AxisBuilder}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYAxis(AxisConfig config)

Configures the vertical axis from a callback, snapshot, or visibility policy and returns this chart builder.

Parameters

NameType
configChartGuru.AxisConfig

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXAxis(AxisVisibility visibility)

Configures the horizontal axis from a callback, snapshot, or visibility policy and returns this chart builder.

Parameters

NameType
visibilityChartGuru.AxisVisibility

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYAxis(AxisVisibility visibility)

Configures the vertical axis from a callback, snapshot, or visibility policy and returns this chart builder.

Parameters

NameType
visibilityChartGuru.AxisVisibility

Returns

ChartGuru.ChartBuilder

ChartXAxisLabel(string, AxisLabelPosition, AxisLabelAlignment, float)

Section titled “ChartXAxisLabel(string, AxisLabelPosition, AxisLabelAlignment, float)”
public ChartBuilder ChartXAxisLabel(string label, AxisLabelPosition position = AxisLabelPosition.Automatic, AxisLabelAlignment alignment = AxisLabelAlignment.Automatic, float spacing = 0)

Sets the horizontal axis title, alignment, position, and extra spacing from the plot area.

Parameters

NameType
labelSystem.String
positionChartGuru.AxisLabelPosition
alignmentChartGuru.AxisLabelAlignment
spacingSystem.Single

Returns

ChartGuru.ChartBuilder

ChartYAxisLabel(string, AxisLabelPosition, AxisLabelAlignment, float)

Section titled “ChartYAxisLabel(string, AxisLabelPosition, AxisLabelAlignment, float)”
public ChartBuilder ChartYAxisLabel(string label, AxisLabelPosition position = AxisLabelPosition.Automatic, AxisLabelAlignment alignment = AxisLabelAlignment.Automatic, float spacing = 0)

Sets the vertical axis title, alignment, position, and extra spacing from the plot area.

Parameters

NameType
labelSystem.String
positionChartGuru.AxisLabelPosition
alignmentChartGuru.AxisLabelAlignment
spacingSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder HideAxes()

Hides both chart axes while preserving their configuration for later reuse.

Returns

ChartGuru.ChartBuilder

ChartSelectionBand(ChartSelectionBandStyle)

Section titled “ChartSelectionBand(ChartSelectionBandStyle)”
public ChartBuilder ChartSelectionBand(ChartSelectionBandStyle style)

Shows an X selection band using an independent copy of the style. Configure input separately with ChartBuilder.ChartXSelection(bool).

Parameters

NameType
styleChartGuru.ChartSelectionBandStyle

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartSelectionBand(Action<ChartSelectionBandStyle> configure = null)

Shows an X selection band. Configure input separately with ChartBuilder.ChartXSelection(bool).

Parameters

NameType
configureSystem.Action{ChartGuru.ChartSelectionBandStyle}

Returns

ChartGuru.ChartBuilder

public ChartBuilder Animation(Animation animation)

Sets the animation applied when chart data or presentation changes; a disabled value updates immediately.

Parameters

NameType
animationChartGuru.Animation

Returns

ChartGuru.ChartBuilder

public ChartBuilder NoAnimation()

Disables data and presentation transition animation so the built chart updates immediately.

Returns

ChartGuru.ChartBuilder

public ChartBuilder Size(float width, float height)

Sets the requested chart width and height in pixels.

Parameters

NameType
widthSystem.Single
heightSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder Size(Vector2 size)

Sets the requested chart size in pixels.

Parameters

NameType
sizeUnityEngine.Vector2

Returns

ChartGuru.ChartBuilder

public ChartBuilder TinyPadding(float padding)

Sets the inset in pixels between a tiny chart’s content and its bounds.

Parameters

NameType
paddingSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder TinyLineWidth(float width)

Sets the stroke width in pixels used by tiny line and area charts.

Parameters

NameType
widthSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder TinyShowMinMax(bool show = true)

Controls whether a tiny chart annotates its minimum and maximum values.

Parameters

NameType
showSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder TinyShowLastValue(bool show = true)

Controls whether a tiny chart annotates the final value in its series.

Parameters

NameType
showSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder TinyColors(Color positive, Color negative, Color? neutral = null)

Sets the colors used for positive, negative, and optionally neutral tiny-chart values.

Parameters

NameType
positiveUnityEngine.Color
negativeUnityEngine.Color
neutralSystem.Nullable{UnityEngine.Color}

Returns

ChartGuru.ChartBuilder

AddRectangle(float, float, float, float, Color)

Section titled “AddRectangle(float, float, float, float, Color)”
public ChartBuilder AddRectangle(float xStart, float xEnd, float yStart, float yEnd, Color color)

Adds rectangle to this Chart Builder and preserves its order for subsequent chart layout.

Parameters

NameType
xStartSystem.Single
xEndSystem.Single
yStartSystem.Single
yEndSystem.Single
colorUnityEngine.Color

Returns

ChartGuru.ChartBuilder

public ChartBuilder AlignsMarkStylesWithPlotArea(bool aligned)

Controls whether mark gradients and other coordinate-dependent styles are resolved against the plot area instead of each mark’s bounds.

Parameters

NameType
alignedSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder TrendLine(RegressionType type = RegressionType.Linear, Color? color = null, float lineWidth = 2)

Fits a regression line through the current marks and appends it when at least two data points are available.

Parameters

NameType
typeChartGuru.RegressionType
colorSystem.Nullable{UnityEngine.Color}
lineWidthSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder Plot(Action<PlotGroupBuilder> configure)

Builds a configured plot group and appends its marks to the chart in group order.

Parameters

NameType
configureSystem.Action{ChartGuru.PlotGroupBuilder}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartAccessibilityAudioGraph(bool enabled)

Enables or disables the chart’s sonified data representation for accessibility playback.

Parameters

NameType
enabledSystem.Boolean

Returns

ChartGuru.ChartBuilder

AddDataFrame(ChartDataFrame, ChartDataEncoding)

Section titled “AddDataFrame(ChartDataFrame, ChartDataEncoding)”
public ChartBuilder AddDataFrame(ChartDataFrame frame, ChartDataEncoding encoding)

Adds typed columnar data through an explicit mark encoding.

Parameters

NameType
frameChartGuru.ChartDataFrame
encodingChartGuru.ChartDataEncoding

Returns

ChartGuru.ChartBuilder

AddBarPlot(ChartDataFrame, string, string, string, string)

Section titled “AddBarPlot(ChartDataFrame, string, string, string, string)”
public ChartBuilder AddBarPlot(ChartDataFrame frame, string x, string y, string series = null, string category = null)

Adds bars from named X and Y columns, with optional series and category columns.

Parameters

NameType
frameChartGuru.ChartDataFrame
xSystem.String
ySystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddBarRangePlot(ChartDataFrame, string, string, string, string, string)

Section titled “AddBarRangePlot(ChartDataFrame, string, string, string, string, string)”
public ChartBuilder AddBarRangePlot(ChartDataFrame frame, string x, string yStart, string yEnd, string series = null, string category = null)

Adds bars spanning named Y-start and Y-end columns at each X value.

Parameters

NameType
frameChartGuru.ChartDataFrame
xSystem.String
yStartSystem.String
yEndSystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddLinePlot(ChartDataFrame, string, string, string, string)

Section titled “AddLinePlot(ChartDataFrame, string, string, string, string)”
public ChartBuilder AddLinePlot(ChartDataFrame frame, string x, string y, string series = null, string category = null)

Adds line marks from named X and Y columns, with optional series and category columns.

Parameters

NameType
frameChartGuru.ChartDataFrame
xSystem.String
ySystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddPointPlot(ChartDataFrame, string, string, string, string)

Section titled “AddPointPlot(ChartDataFrame, string, string, string, string)”
public ChartBuilder AddPointPlot(ChartDataFrame frame, string x, string y, string series = null, string category = null)

Adds point marks from named X and Y columns, with optional series and category columns.

Parameters

NameType
frameChartGuru.ChartDataFrame
xSystem.String
ySystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddAreaPlot(ChartDataFrame, string, string, string, string)

Section titled “AddAreaPlot(ChartDataFrame, string, string, string, string)”
public ChartBuilder AddAreaPlot(ChartDataFrame frame, string x, string y, string series = null, string category = null)

Adds area marks from named X and Y columns, with optional series and category columns.

Parameters

NameType
frameChartGuru.ChartDataFrame
xSystem.String
ySystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddAreaRangePlot(ChartDataFrame, string, string, string, string, string)

Section titled “AddAreaRangePlot(ChartDataFrame, string, string, string, string, string)”
public ChartBuilder AddAreaRangePlot(ChartDataFrame frame, string x, string yStart, string yEnd, string series = null, string category = null)

Adds area marks spanning named Y-start and Y-end columns at each X value.

Parameters

NameType
frameChartGuru.ChartDataFrame
xSystem.String
yStartSystem.String
yEndSystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddSectorPlot(ChartDataFrame, string, string, string)

Section titled “AddSectorPlot(ChartDataFrame, string, string, string)”
public ChartBuilder AddSectorPlot(ChartDataFrame frame, string angle, string series = null, string category = null)

Adds sectors using the named angle column, with optional series and category columns.

Parameters

NameType
frameChartGuru.ChartDataFrame
angleSystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddRectanglePlot(ChartDataFrame, string, string, string, string, string)

Section titled “AddRectanglePlot(ChartDataFrame, string, string, string, string, string)”
public ChartBuilder AddRectanglePlot(ChartDataFrame frame, string xStart, string xEnd, string yStart, string yEnd, string series = null)

Adds rectangles from named X and Y boundary columns, with optional series grouping.

Parameters

NameType
frameChartGuru.ChartDataFrame
xStartSystem.String
xEndSystem.String
yStartSystem.String
yEndSystem.String
seriesSystem.String

Returns

ChartGuru.ChartBuilder

AddVerticalRulePlot(ChartDataFrame, string, string, string)

Section titled “AddVerticalRulePlot(ChartDataFrame, string, string, string)”
public ChartBuilder AddVerticalRulePlot(ChartDataFrame frame, string x, string series = null, string category = null)

Adds vertical rule marks at the named X-column values, with optional series and category columns.

Parameters

NameType
frameChartGuru.ChartDataFrame
xSystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

AddHorizontalRulePlot(ChartDataFrame, string, string, string)

Section titled “AddHorizontalRulePlot(ChartDataFrame, string, string, string)”
public ChartBuilder AddHorizontalRulePlot(ChartDataFrame frame, string y, string series = null, string category = null)

Adds horizontal rule marks at the named Y-column values, with optional series and category columns.

Parameters

NameType
frameChartGuru.ChartDataFrame
ySystem.String
seriesSystem.String
categorySystem.String

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXSelection(Action<float?> onSelectionChanged)

Binds horizontal single-value or range selection and registers the callback invoked when it changes.

Parameters

NameType
onSelectionChangedSystem.Action{System.Nullable{System.Single}}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXSelection(bool enabled = true)

Enables horizontal axis selection independently of mark geometry, without registering a callback.

Parameters

NameType
enabledSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXSelection(Action<ClosedRange<float>?> onRangeChanged)

Binds horizontal single-value or range selection and registers the callback invoked when it changes.

Parameters

NameType
onRangeChangedSystem.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYSelection(Action<float?> onSelectionChanged)

Binds vertical single-value or range selection and registers the callback invoked when it changes.

Parameters

NameType
onSelectionChangedSystem.Action{System.Nullable{System.Single}}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYSelection(Action<ClosedRange<float>?> onRangeChanged)

Binds vertical single-value or range selection and registers the callback invoked when it changes.

Parameters

NameType
onRangeChangedSystem.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartAngleSelection(Action<float?> onSelectionChanged)

Registers a callback for angular selection changes on polar, pie, and donut charts. A null value clears the selection.

Parameters

NameType
onSelectionChangedSystem.Action{System.Nullable{System.Single}}

Returns

ChartGuru.ChartBuilder

ChartForegroundStyleScale(Dictionary<object, Color>)

Section titled “ChartForegroundStyleScale(Dictionary<object, Color>)”
public ChartBuilder ChartForegroundStyleScale(Dictionary<object, Color> scale)

Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.Object,UnityEngine.Color}

Returns

ChartGuru.ChartBuilder

ChartForegroundStyleScale(Dictionary<string, Color>)

Section titled “ChartForegroundStyleScale(Dictionary<string, Color>)”
public ChartBuilder ChartForegroundStyleScale(Dictionary<string, Color> scale)

Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.String,UnityEngine.Color}

Returns

ChartGuru.ChartBuilder

ChartForegroundStyleScale(Dictionary<object, LinearGradientStyle>)

Section titled “ChartForegroundStyleScale(Dictionary<object, LinearGradientStyle>)”
public ChartBuilder ChartForegroundStyleScale(Dictionary<object, LinearGradientStyle> scale)

Maps series or style keys to gradients drawn across every mark of that key, like .chartForegroundStyleScale([“A”: .linearGradient(…)]) in Swift Charts. A mark with its own gradient keeps it. A key that also has a color in the color scale keeps that color on its marks: bars and areas still draw the gradient, lines and radar polygons draw the color.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.Object,ChartGuru.LinearGradientStyle}

Returns

ChartGuru.ChartBuilder

ChartForegroundStyleScale(Dictionary<string, LinearGradientStyle>)

Section titled “ChartForegroundStyleScale(Dictionary<string, LinearGradientStyle>)”
public ChartBuilder ChartForegroundStyleScale(Dictionary<string, LinearGradientStyle> scale)

Maps series or style keys to gradients drawn across every mark of that key, like .chartForegroundStyleScale([“A”: .linearGradient(…)]) in Swift Charts.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.String,ChartGuru.LinearGradientStyle}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartForegroundStyleScale(Gradient range)

Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.

Parameters

NameType
rangeUnityEngine.Gradient

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartForegroundStyleScale(ColorScale scale)

Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.

Parameters

NameType
scaleChartGuru.ColorScale

Returns

ChartGuru.ChartBuilder

public ChartBuilder ColorScalePresetIndex(int presetIndex)

Selects the indexed built-in color palette used when no explicit foreground-style scale is supplied.

Parameters

NameType
presetIndexSystem.Int32

Returns

ChartGuru.ChartBuilder

ChartSymbolScale(Dictionary<object, SymbolShape>)

Section titled “ChartSymbolScale(Dictionary<object, SymbolShape>)”
public ChartBuilder ChartSymbolScale(Dictionary<object, SymbolShape> scale)

Maps symbol keys to shapes used by matching marks and legend entries.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.Object,ChartGuru.SymbolShape}

Returns

ChartGuru.ChartBuilder

ChartSymbolScale(Dictionary<string, SymbolShape>)

Section titled “ChartSymbolScale(Dictionary<string, SymbolShape>)”
public ChartBuilder ChartSymbolScale(Dictionary<string, SymbolShape> scale)

Maps symbol keys to shapes used by matching marks and legend entries.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.String,ChartGuru.SymbolShape}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartSymbolScale(string[] domain, SymbolShape[] range)

Maps symbol keys to shapes used by matching marks and legend entries.

Parameters

NameType
domainSystem.String[]
rangeChartGuru.SymbolShape[]

Returns

ChartGuru.ChartBuilder

ChartLineStyleScale(Dictionary<object, StrokeStyle>)

Section titled “ChartLineStyleScale(Dictionary<object, StrokeStyle>)”
public ChartBuilder ChartLineStyleScale(Dictionary<object, StrokeStyle> scale)

Maps series keys to line styles used by matching marks and legend entries.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.Object,ChartGuru.StrokeStyle}

Returns

ChartGuru.ChartBuilder

ChartLineStyleScale(Dictionary<string, StrokeStyle>)

Section titled “ChartLineStyleScale(Dictionary<string, StrokeStyle>)”
public ChartBuilder ChartLineStyleScale(Dictionary<string, StrokeStyle> scale)

Maps series keys to line styles used by matching marks and legend entries.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.String,ChartGuru.StrokeStyle}

Returns

ChartGuru.ChartBuilder

ChartLineStyleScale(string[], StrokeStyle[])

Section titled “ChartLineStyleScale(string[], StrokeStyle[])”
public ChartBuilder ChartLineStyleScale(string[] domain, StrokeStyle[] range)

Maps series keys to line styles used by matching marks and legend entries.

Parameters

NameType
domainSystem.String[]
rangeChartGuru.StrokeStyle[]

Returns

ChartGuru.ChartBuilder

ChartSymbolSizeScale(Dictionary<object, float>)

Section titled “ChartSymbolSizeScale(Dictionary<object, float>)”
public ChartBuilder ChartSymbolSizeScale(Dictionary<object, float> scale)

Maps numeric or categorical symbol keys to rendered mark sizes.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.Object,System.Single}

Returns

ChartGuru.ChartBuilder

ChartSymbolSizeScale(Dictionary<string, float>)

Section titled “ChartSymbolSizeScale(Dictionary<string, float>)”
public ChartBuilder ChartSymbolSizeScale(Dictionary<string, float> scale)

Maps numeric or categorical symbol keys to rendered mark sizes.

Parameters

NameType
scaleSystem.Collections.Generic.Dictionary{System.String,System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartSymbolSizeScale(string[] domain, float[] range)

Maps numeric or categorical symbol keys to rendered mark sizes.

Parameters

NameType
domainSystem.String[]
rangeSystem.Single[]

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartSymbolSizeScale(ClosedRange<float> range)

Maps numeric or categorical symbol keys to rendered mark sizes.

Parameters

NameType
rangeChartGuru.ClosedRange{System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartForegroundStyleScale(Color[] range)

Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.

Parameters

NameType
rangeUnityEngine.Color[]

Returns

ChartGuru.ChartBuilder

ChartForegroundStyleScale(string[], Color[])

Section titled “ChartForegroundStyleScale(string[], Color[])”
public ChartBuilder ChartForegroundStyleScale(string[] domain, Color[] range)

Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.

Parameters

NameType
domainSystem.String[]
rangeUnityEngine.Color[]

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartTooltip(ChartTooltipPreset preset = ChartTooltipPreset.Automatic)

Enables a built-in tooltip content preset.

Parameters

NameType
presetChartGuru.ChartTooltipPreset

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartTooltip(ChartTooltipContentProvider contentProvider)

Registers a retained content builder callback for user-defined tooltip content.

Parameters

NameType
contentProviderChartGuru.ChartTooltipContentProvider

Returns

ChartGuru.ChartBuilder

ChartTooltipInteraction(ChartTooltipInteraction)

Section titled “ChartTooltipInteraction(ChartTooltipInteraction)”
public ChartBuilder ChartTooltipInteraction(ChartTooltipInteraction interaction)

Configures hover, pinning, or selection-driven tooltip interaction.

Parameters

NameType
interactionChartGuru.ChartTooltipInteraction

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartTooltipStyle(ChartTooltipStyle style)

Applies custom presentation tokens to the built-in tooltip presenters.

Parameters

NameType
styleChartGuru.ChartTooltipStyle

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartTooltipIndicator(bool visible)

Controls the plot-aligned guide rendered with a tooltip.

Parameters

NameType
visibleSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartTooltipChanged(Action<ChartTooltipState> onChanged)

Registers a retained state callback for MVVM-style selection and tooltip bindings.

Parameters

NameType
onChangedSystem.Action{ChartGuru.ChartTooltipState}

Returns

ChartGuru.ChartBuilder

public ChartBuilder HideTooltip()

Disables tooltip hit tracking and presentation for this chart.

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartPlotStyle(Action<PlotStyleBuilder> configure)

Configures padding, clipping, background, and other presentation applied specifically to the plot area.

Parameters

NameType
configureSystem.Action{ChartGuru.PlotStyleBuilder}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBarWidth(MarkDimension width)

Overrides the horizontal dimension used to size generated bar marks.

Parameters

NameType
widthChartGuru.MarkDimension

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBarHeight(MarkDimension height)

Overrides the vertical dimension used to size generated bar marks.

Parameters

NameType
heightChartGuru.MarkDimension

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBackground(Color color)

Configures the chart background fill or callback without changing the plot-area background.

Parameters

NameType
colorUnityEngine.Color

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBorder(Color color, float width = 1, float cornerRadius = 0)

Draws a border around the chart bounds, clamping width and corner radius to non-negative pixel values.

Parameters

NameType
colorUnityEngine.Color
widthSystem.Single
cornerRadiusSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartPieLabelMode(PieLabelMode mode)

Selects how labels for pie and donut sectors are positioned or suppressed.

Parameters

NameType
modeChartGuru.PieLabelMode

Returns

ChartGuru.ChartBuilder

public ChartBuilder DataLabelColor(Color color)

Overrides the data-label color. A fully transparent color clears the override and restores automatic styling.

Parameters

NameType
colorUnityEngine.Color

Returns

ChartGuru.ChartBuilder

public ChartBuilder AxisLabelColor(Color color)

Overrides the axis value-label color. A fully transparent color clears the override and restores automatic styling.

Parameters

NameType
colorUnityEngine.Color

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBackground(Gradient gradient)

Configures the chart background fill or callback without changing the plot-area background.

Parameters

NameType
gradientUnityEngine.Gradient

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBackground(LinearGradientStyle gradient)

Configures the chart background fill or callback without changing the plot-area background.

Parameters

NameType
gradientChartGuru.LinearGradientStyle

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBackground(FourCornerGradient fourCorner)

Configures the chart background fill or callback without changing the plot-area background.

Parameters

NameType
fourCornerChartGuru.FourCornerGradient

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartBackground(Action<ChartProxy> callback)

Configures the chart background fill or callback without changing the plot-area background.

Parameters

NameType
callbackSystem.Action{ChartGuru.ChartProxy}

Returns

ChartGuru.ChartBuilder

ChartSelectionLine(ChartSelectionLineStyle)

Section titled “ChartSelectionLine(ChartSelectionLineStyle)”
public ChartBuilder ChartSelectionLine(ChartSelectionLineStyle style)

Configures an independent copy of the selection guide style without changing the indicator or enabling input.

Parameters

NameType
styleChartGuru.ChartSelectionLineStyle

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartSelectionLine(Action<ChartSelectionLineStyle> configure = null)

Configures the selection guide style without changing the indicator or enabling input.

Parameters

NameType
configureSystem.Action{ChartGuru.ChartSelectionLineStyle}

Returns

ChartGuru.ChartBuilder

ChartSelectionMarker(ChartSelectionMarkerStyle)

Section titled “ChartSelectionMarker(ChartSelectionMarkerStyle)”
public ChartBuilder ChartSelectionMarker(ChartSelectionMarkerStyle style)

Configures an independent copy of the selection marker style without changing the indicator or enabling input.

Parameters

NameType
styleChartGuru.ChartSelectionMarkerStyle

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartSelectionMarker(Action<ChartSelectionMarkerStyle> configure = null)

Configures the selection marker style without changing the indicator or enabling input.

Parameters

NameType
configureSystem.Action{ChartGuru.ChartSelectionMarkerStyle}

Returns

ChartGuru.ChartBuilder

public ChartBuilder SelectionDimOpacity(float opacity)

Sets the opacity of unselected marks for Highlight, Rule and Lollipop selection without enabling input.

Parameters

NameType
opacitySystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder Add(IChartMark mark)

Appends a non-null mark in rendering order, expanding generated trend-line content into its sampled marks.

Parameters

NameType
markChartGuru.IChartMark

Returns

ChartGuru.ChartBuilder

public ChartBuilder Add(IEnumerable<IChartMark> marks)

Appends non-null marks in enumeration order, expanding generated content where required. A null sequence is ignored.

Parameters

NameType
marksSystem.Collections.Generic.IEnumerable{ChartGuru.IChartMark}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ForEach<T>(IEnumerable<T> data, Func<T, IChartMark> factory)

Adds one mark per data item, mirroring Swift Charts’ ForEach inside a chart body. Use this to layer additional mark types on top of the primary Chart.Create<T>(IEnumerable<T>, Func<T, IChartMark>) marks, for example a LineMark on top of an AreaMark.

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
factorySystem.Func{{T},ChartGuru.IChartMark}

Returns

ChartGuru.ChartBuilder

ForEach(IEnumerable, Func<T, IEnumerable>)

Section titled “ForEach(IEnumerable, Func<T, IEnumerable>)”
public ChartBuilder ForEach<T>(IEnumerable<T> data, Func<T, IEnumerable<IChartMark>> factory)

Adds multiple marks per data item, mirroring Swift Charts’ ForEach with a body containing more than one mark expression.

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
factorySystem.Func{{T},System.Collections.Generic.IEnumerable{ChartGuru.IChartMark}}

Returns

ChartGuru.ChartBuilder

public ChartBuilder AddComposites(IEnumerable<IChartContent> composites)

Adds composites to this Chart Builder and preserves its order for subsequent chart layout.

Parameters

NameType
compositesSystem.Collections.Generic.IEnumerable{ChartGuru.IChartContent}

Returns

ChartGuru.ChartBuilder

AddComposites(IEnumerable, Func<T, IChartContent>)

Section titled “AddComposites(IEnumerable, Func<T, IChartContent>)”
public ChartBuilder AddComposites<T>(IEnumerable<T> data, Func<T, IChartContent> factory)

Adds one composite per input item, letting callers compose multi-mark content from a data source the same way plain marks are added.

This is ChartGuru's bounded stand-in for Swift Charts' ForEach inside a @ChartContentBuilder. Full @resultBuilder DSL parity is an explicit non-goal; use this overload when you want data-driven composite marks.

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
factorySystem.Func{{T},ChartGuru.IChartContent}

Returns

ChartGuru.ChartBuilder

Examples

builder.AddComposites(
    cities,
    city => new ChartComposite(
        new LineMark(city.Date, city.Low),
        new LineMark(city.Date, city.High)));

public ChartBuilder AddBar(float x, float y)

Adds bar to this Chart Builder and preserves its order for subsequent chart layout.

Parameters

NameType
xSystem.Single
ySystem.Single

Returns

ChartGuru.ChartBuilder

AddHistogramBars(IEnumerable, Func<T, float>, NumberBins, Func<List, float>, Color?, string)

Section titled “AddHistogramBars(IEnumerable, Func<T, float>, NumberBins, Func<List, float>, Color?, string)”
public ChartBuilder AddHistogramBars<T>(IEnumerable<T> data, Func<T, float> value, NumberBins<float> bins, Func<List<T>, float> aggregate = null, Color? color = null, string seriesKey = "Histogram")

Histogram: buckets data by value into the supplied bins and emits one BarMark per bucket whose X is the bin midpoint and Y is the bucket count (or the optional aggregate). Swift Charts equivalent: BarMark(x: .Value(…), y: .Value(.count), … bins: NumberBins(…)).

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
valueSystem.Func{{T},System.Single}
binsChartGuru.NumberBins{System.Single}
aggregateSystem.Func{System.Collections.Generic.List{{T}},System.Single}
colorSystem.Nullable{UnityEngine.Color}
seriesKeySystem.String

Returns

ChartGuru.ChartBuilder

public ChartBuilder AddLine(float x, float y)

Adds line to this Chart Builder and preserves its order for subsequent chart layout.

Parameters

NameType
xSystem.Single
ySystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder AddPoint(float x, float y)

Adds point to this Chart Builder and preserves its order for subsequent chart layout.

Parameters

NameType
xSystem.Single
ySystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartType(ChartType type)

Explicitly selects the chart family, preventing automatic mark-based type inference during the build.

Parameters

NameType
typeChartGuru.ChartType

Returns

ChartGuru.ChartBuilder

AddLinePlot(Func<float, float>, float, float, int)

Section titled “AddLinePlot(Func<float, float>, float, float, int)”
public ChartBuilder AddLinePlot(Func<float, float> function, float domainMin = 0, float domainMax = 1, int samples = 100)

Adds a LinePlot for rendering a mathematical function. Swift Charts equivalent: LinePlot(x: “x”, y: .linearFunction(…))

Parameters

NameType
functionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32

Returns

ChartGuru.ChartBuilder

AddLinePlot(Func<float, float>, float, float, int, Color, string)

Section titled “AddLinePlot(Func<float, float>, float, float, int, Color, string)”
public ChartBuilder AddLinePlot(Func<float, float> function, float domainMin, float domainMax, int samples, Color color, string seriesKey = null)

Adds a LinePlot for rendering a mathematical function with a specific color.

Parameters

NameType
functionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32
colorUnityEngine.Color
seriesKeySystem.String

Returns

ChartGuru.ChartBuilder

AddLinePlot(Func<float, float>, float, float, int, Color, float, string)

Section titled “AddLinePlot(Func<float, float>, float, float, int, Color, float, string)”
public ChartBuilder AddLinePlot(Func<float, float> function, float domainMin, float domainMax, int samples, Color color, float lineWidth, string seriesKey = null)

Adds a LinePlot for rendering a mathematical function with a specific color and line width.

Parameters

NameType
functionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32
colorUnityEngine.Color
lineWidthSystem.Single
seriesKeySystem.String

Returns

ChartGuru.ChartBuilder

AddLinePlot(Func<float, float>, float, float, int, Color, float, float[], string)

Section titled “AddLinePlot(Func<float, float>, float, float, int, Color, float, float[], string)”
public ChartBuilder AddLinePlot(Func<float, float> function, float domainMin, float domainMax, int samples, Color color, float lineWidth, float[] dash, string seriesKey = null)

Adds a LinePlot for rendering a mathematical function with full styling options. Swift Charts equivalent: LinePlot(x:y:).ForegroundStyle(color).LineStyle(StrokeStyle(lineWidth:dash:))

Parameters

NameType
functionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32
colorUnityEngine.Color
lineWidthSystem.Single
dashSystem.Single[]
seriesKeySystem.String

Returns

ChartGuru.ChartBuilder

AddLinePlot(Func<float, float>, float, float, int, Color, StrokeStyle, string)

Section titled “AddLinePlot(Func<float, float>, float, float, int, Color, StrokeStyle, string)”
public ChartBuilder AddLinePlot(Func<float, float> function, float domainMin, float domainMax, int samples, Color color, StrokeStyle style, string seriesKey = null)

Adds a LinePlot with a StrokeStyle for complete line styling. Swift Charts equivalent: LinePlot(x:y:).LineStyle(StrokeStyle(…))

Parameters

NameType
functionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32
colorUnityEngine.Color
styleChartGuru.StrokeStyle
seriesKeySystem.String

Returns

ChartGuru.ChartBuilder

AddLinearFunction(float, float, float, float)

Section titled “AddLinearFunction(float, float, float, float)”
public ChartBuilder AddLinearFunction(float intercept, float slope, float domainMin = 0, float domainMax = 1)

Adds a linear function plot: y = slope * x + intercept Swift Charts equivalent: LinePlot(x: “x”, y: .linearFunction(intercept:slope:))

Parameters

NameType
interceptSystem.Single
slopeSystem.Single
domainMinSystem.Single
domainMaxSystem.Single

Returns

ChartGuru.ChartBuilder

AddTrendLinePlot(IEnumerable, Func<T, float>, Func<T, float>, RegressionType, int, int, Color?, float, float[], string)

Section titled “AddTrendLinePlot(IEnumerable, Func<T, float>, Func<T, float>, RegressionType, int, int, Color?, float, float[], string)”
public ChartBuilder AddTrendLinePlot<T>(IEnumerable<T> data, Func<T, float> x, Func<T, float> y, RegressionType regression = RegressionType.Linear, int polynomialDegree = 2, int samples = 100, Color? color = null, float lineWidth = 2, float[] dash = null, string seriesKey = "TrendLine")

Adds a regression-based trend line over the supplied data. Swift Charts equivalent: LinearRegressionPlot / first-class regression mark. Computes the requested regression type (linear/polynomial/exponential/log/power) and emits a LinePlot sampling the resulting function across the data’s observed X domain. The R² is exposed via ChartBuilder.LastTrendLineRSquared.

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}
ySystem.Func{{T},System.Single}
regressionChartGuru.RegressionType
polynomialDegreeSystem.Int32
samplesSystem.Int32
colorSystem.Nullable{UnityEngine.Color}
lineWidthSystem.Single
dashSystem.Single[]
seriesKeySystem.String

Returns

ChartGuru.ChartBuilder

AddAreaPlot(Func<float, float>, float, float, int)

Section titled “AddAreaPlot(Func<float, float>, float, float, int)”
public ChartBuilder AddAreaPlot(Func<float, float> function, float domainMin = 0, float domainMax = 1, int samples = 100)

Adds an AreaPlot for rendering a filled mathematical function. Swift Charts equivalent: AreaPlot(x: “x”, y: function)

Parameters

NameType
functionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32

Returns

ChartGuru.ChartBuilder

AddAreaPlot(Func<float, float>, float, float, int, Color)

Section titled “AddAreaPlot(Func<float, float>, float, float, int, Color)”
public ChartBuilder AddAreaPlot(Func<float, float> function, float domainMin, float domainMax, int samples, Color color)

Adds an AreaPlot for rendering a filled mathematical function with a specific color.

Parameters

NameType
functionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32
colorUnityEngine.Color

Returns

ChartGuru.ChartBuilder

AddAreaBetweenCurves(Func<float, float>, Func<float, float>, float, float, int, Color?)

Section titled “AddAreaBetweenCurves(Func<float, float>, Func<float, float>, float, float, int, Color?)”
public ChartBuilder AddAreaBetweenCurves(Func<float, float> upperFunction, Func<float, float> lowerFunction, float domainMin = 0, float domainMax = 1, int samples = 100, Color? color = null)

Adds an area between two curves (confidence interval, band visualization). The area between upperFunction and lowerFunction will be filled.

Parameters

NameType
upperFunctionSystem.Func{System.Single,System.Single}
lowerFunctionSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32
colorSystem.Nullable{UnityEngine.Color}

Returns

ChartGuru.ChartBuilder

AddCandlestick(float, float, float, float, float)

Section titled “AddCandlestick(float, float, float, float, float)”
public ChartBuilder AddCandlestick(float x, float open, float high, float low, float close)

Adds a candlestick mark (OHLC data).

Parameters

NameType
xSystem.Single
openSystem.Single
highSystem.Single
lowSystem.Single
closeSystem.Single

Returns

ChartGuru.ChartBuilder

AddCandlesticks(IEnumerable, Color?, Color?)

Section titled “AddCandlesticks(IEnumerable, Color?, Color?)”
public ChartBuilder AddCandlesticks(IEnumerable<OHLCData> data, Color? bullishColor = null, Color? bearishColor = null)

Adds multiple candlestick marks from OHLC data.

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{ChartGuru.OHLCData}
bullishColorSystem.Nullable{UnityEngine.Color}
bearishColorSystem.Nullable{UnityEngine.Color}

Returns

ChartGuru.ChartBuilder

public ChartBuilder AddRangeBar(float x, float yStart, float yEnd)

Adds a range bar (for waterfall, gantt, or range charts).

Parameters

NameType
xSystem.Single
yStartSystem.Single
yEndSystem.Single

Returns

ChartGuru.ChartBuilder

AddHorizontalRangeBar(float, float, float)

Section titled “AddHorizontalRangeBar(float, float, float)”
public ChartBuilder AddHorizontalRangeBar(float xStart, float xEnd, float y)

Adds a horizontal range bar (for gantt charts).

Parameters

NameType
xStartSystem.Single
xEndSystem.Single
ySystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder AddComposite(IChartContent composite)

Adds marks from a composite chart content (like CandleStickMark).

Parameters

NameType
compositeChartGuru.IChartContent

Returns

ChartGuru.ChartBuilder

public ChartBuilder HeatMap(float[,] data, ColorScale colorScale = null)

Creates a heatmap from a 2D data array.

Parameters

NameType
dataSystem.Single[,]
colorScaleChartGuru.ColorScale

Returns

ChartGuru.ChartBuilder

AddBarPlot(IEnumerable, Func<T, float>, Func<T, float>)

Section titled “AddBarPlot(IEnumerable, Func<T, float>, Func<T, float>)”
public ChartBuilder AddBarPlot<T>(IEnumerable<T> data, Func<T, float> x, Func<T, float> y)

Adds a BarPlot from collection data. Swift Charts equivalent: BarPlot(data, x: .category, y: .value)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddBarPlot(IEnumerable, Func<T, string>, Func<T, float>)

Section titled “AddBarPlot(IEnumerable, Func<T, string>, Func<T, float>)”
public ChartBuilder AddBarPlot<T>(IEnumerable<T> data, Func<T, string> category, Func<T, float> y)

Adds a BarPlot from collection data with category labels. Swift Charts equivalent: BarPlot(data, x: .category, y: .value)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
categorySystem.Func{{T},System.String}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddLinePlot(IEnumerable, Func<T, float>, Func<T, float>)

Section titled “AddLinePlot(IEnumerable, Func<T, float>, Func<T, float>)”
public ChartBuilder AddLinePlot<T>(IEnumerable<T> data, Func<T, float> x, Func<T, float> y)

Adds a LinePlot from collection data. Swift Charts equivalent: LinePlot(data, x: .x, y: .y)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddPointPlot(IEnumerable, Func<T, float>, Func<T, float>)

Section titled “AddPointPlot(IEnumerable, Func<T, float>, Func<T, float>)”
public ChartBuilder AddPointPlot<T>(IEnumerable<T> data, Func<T, float> x, Func<T, float> y)

Adds a PointPlot from collection data. Swift Charts equivalent: PointPlot(data, x: .x, y: .y)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddPointPlot(IEnumerable, Func<T, string>, Func<T, float>)

Section titled “AddPointPlot(IEnumerable, Func<T, string>, Func<T, float>)”
public ChartBuilder AddPointPlot<T>(IEnumerable<T> data, Func<T, string> category, Func<T, float> y)

Adds a PointPlot from collection data with category labels. Swift Charts equivalent: PointPlot(data, x: .category, y: .value)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
categorySystem.Func{{T},System.String}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddAreaPlot(IEnumerable, Func<T, float>, Func<T, float>)

Section titled “AddAreaPlot(IEnumerable, Func<T, float>, Func<T, float>)”
public ChartBuilder AddAreaPlot<T>(IEnumerable<T> data, Func<T, float> x, Func<T, float> y)

Adds an AreaPlot from collection data. Swift Charts equivalent: AreaPlot(data, x: .x, y: .y)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddAreaPlot(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)

Section titled “AddAreaPlot(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)”
public ChartBuilder AddAreaPlot<T>(IEnumerable<T> data, Func<T, float> x, Func<T, float> yStart, Func<T, float> yEnd)

Adds an AreaPlot from collection data with range. Swift Charts equivalent: AreaPlot(data, x: .x, yStart: .min, yEnd: .max)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}
yStartSystem.Func{{T},System.Single}
yEndSystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddRectanglePlot(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>, Func<T, float>)

Section titled “AddRectanglePlot(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>, Func<T, float>)”
public ChartBuilder AddRectanglePlot<T>(IEnumerable<T> data, Func<T, float> xStart, Func<T, float> xEnd, Func<T, float> yStart, Func<T, float> yEnd)

Adds a RectanglePlot from collection data. Swift Charts equivalent: RectanglePlot(data, xStart:, xEnd:, yStart:, yEnd:)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xStartSystem.Func{{T},System.Single}
xEndSystem.Func{{T},System.Single}
yStartSystem.Func{{T},System.Single}
yEndSystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddSectorPlot(IEnumerable, Func<T, float>)

Section titled “AddSectorPlot(IEnumerable, Func<T, float>)”
public ChartBuilder AddSectorPlot<T>(IEnumerable<T> data, Func<T, float> angle)

Adds a SectorPlot from collection data. Swift Charts equivalent: SectorPlot(data, angle: .value)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
angleSystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddSectorPlot(IEnumerable, Func<T, float>, float, float)

Section titled “AddSectorPlot(IEnumerable, Func<T, float>, float, float)”
public ChartBuilder AddSectorPlot<T>(IEnumerable<T> data, Func<T, float> angle, float innerRadius, float outerRadius = 1)

Adds a SectorPlot from collection data with donut configuration. Swift Charts equivalent: SectorPlot(data, angle: .value, innerRadius:, outerRadius:)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
angleSystem.Func{{T},System.Single}
innerRadiusSystem.Single
outerRadiusSystem.Single

Returns

ChartGuru.ChartBuilder

AddVerticalRules(IEnumerable, Func<T, float>)

Section titled “AddVerticalRules(IEnumerable, Func<T, float>)”
public ChartBuilder AddVerticalRules<T>(IEnumerable<T> data, Func<T, float> x)

Adds vertical rules from collection data. Swift Charts equivalent: RulePlot(data, x: .value)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddHorizontalRules(IEnumerable, Func<T, float>)

Section titled “AddHorizontalRules(IEnumerable, Func<T, float>)”
public ChartBuilder AddHorizontalRules<T>(IEnumerable<T> data, Func<T, float> y)

Adds horizontal rules from collection data. Swift Charts equivalent: RulePlot(data, y: .value)

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder AddRulePlot<T>(IEnumerable<T> data, Func<T, float> x)

Swift-shaped alias for ChartBuilder.AddVerticalRules<T>(IEnumerable<T>, Func<T, float>). Swift Charts equivalent: RulePlot(data, x: .value).

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddRulePlotSegments(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)

Section titled “AddRulePlotSegments(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)”
public ChartBuilder AddRulePlotSegments<T>(IEnumerable<T> data, Func<T, float> x, Func<T, float> yStart, Func<T, float> yEnd)

Adds a vertical-segment RulePlot with start/end Y selectors. Swift Charts equivalent: RulePlot(data, x:, yStart:, yEnd:).

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSystem.Func{{T},System.Single}
yStartSystem.Func{{T},System.Single}
yEndSystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddRulePlotHorizontalSegments(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)

Section titled “AddRulePlotHorizontalSegments(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)”
public ChartBuilder AddRulePlotHorizontalSegments<T>(IEnumerable<T> data, Func<T, float> xStart, Func<T, float> xEnd, Func<T, float> y)

Adds a horizontal-segment RulePlot with start/end X selectors. Swift Charts equivalent: RulePlot(data, xStart:, xEnd:, y:).

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xStartSystem.Func{{T},System.Single}
xEndSystem.Func{{T},System.Single}
ySystem.Func{{T},System.Single}

Returns

ChartGuru.ChartBuilder

AddRectanglePlot(Func<float, float>, Func<float, float>, float, float, int)

Section titled “AddRectanglePlot(Func<float, float>, Func<float, float>, float, float, int)”
public ChartBuilder AddRectanglePlot(Func<float, float> yLow, Func<float, float> yHigh, float domainMin = 0, float domainMax = 1, int samples = 32)

Adds a function-form RectanglePlot, sampling yLow / yHigh across the x-domain to emit one RectangleMark per sample. Swift Charts equivalent: RectanglePlot(x: .Automatic(…), yStart: fn, yEnd: fn).

Parameters

NameType
yLowSystem.Func{System.Single,System.Single}
yHighSystem.Func{System.Single,System.Single}
domainMinSystem.Single
domainMaxSystem.Single
samplesSystem.Int32

Returns

ChartGuru.ChartBuilder

AddSectorPlot(IEnumerable, Func<T, float>, float, float, float)

Section titled “AddSectorPlot(IEnumerable, Func<T, float>, float, float, float)”
public ChartBuilder AddSectorPlot<T>(IEnumerable<T> data, Func<T, float> angle, float innerRadius, float outerRadius, float angularInset)

Swift-shaped alias for AddSectorPlot that mirrors Swift Charts’ angle selector. Accepts optional innerRadius / angularInset for donut / gapped slice control in one call. Swift Charts equivalent: SectorPlot(data, angle: .value, innerRadius:, angularInset:).

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
angleSystem.Func{{T},System.Single}
innerRadiusSystem.Single
outerRadiusSystem.Single
angularInsetSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartTitle(string title)

Sets the chart title text.

Parameters

NameType
titleSystem.String

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartSubtitle(string subtitle)

Sets the chart subtitle text.

Parameters

NameType
subtitleSystem.String

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartTitlePosition(ChartTitlePosition position)

Sets the position and alignment of the chart title/subtitle block.

Parameters

NameType
positionChartGuru.ChartTitlePosition

Returns

ChartGuru.ChartBuilder

public ChartBuilder ShowAreaLine(bool show)

Controls whether area charts draw a boundary stroke above the filled region.

Parameters

NameType
showSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder InterpolationMethod(InterpolationMethod method)

Selects how adjacent data points are connected, affecting line and area geometry between samples.

Parameters

NameType
methodChartGuru.InterpolationMethod

Returns

ChartGuru.ChartBuilder

public ChartBuilder LineStyle(float lineWidth)

Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.

Parameters

NameType
lineWidthSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder LineStyle(StrokeStyle style)

Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.

Parameters

NameType
styleChartGuru.StrokeStyle

Returns

ChartGuru.ChartBuilder

public ChartBuilder CornerRadius(float radius)

Sets corner rounding for supported bar, rectangle, or sector geometry.

Parameters

NameType
radiusSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder Opacity(float value)

Configures the alpha multiplier for generated marks; selector overloads evaluate it separately for each datum.

Parameters

NameType
valueSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder SymbolSize(float size)

Sets rendered point-symbol area; selector overloads resolve a separate size for each source datum.

Parameters

NameType
sizeSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder Symbol(SymbolShape shape)

Sets the point symbol; selector overloads resolve a separate shape for each source datum.

Parameters

NameType
shapeChartGuru.SymbolShape

Returns

ChartGuru.ChartBuilder

public ChartBuilder Symbol(SymbolShape shape, float size)

Sets the point symbol; selector overloads resolve a separate shape for each source datum.

Parameters

NameType
shapeChartGuru.SymbolShape
sizeSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ForegroundStyle(Color color)

Configures the fill or stroke color used by generated marks; selector overloads resolve the style separately for each datum.

Parameters

NameType
colorUnityEngine.Color

Returns

ChartGuru.ChartBuilder

public ChartBuilder ForegroundStyle(LinearGradientStyle gradient)

Configures the fill or stroke color used by generated marks; selector overloads resolve the style separately for each datum.

Parameters

NameType
gradientChartGuru.LinearGradientStyle

Returns

ChartGuru.ChartBuilder

public ChartBuilder AngularInset(float inset)

Sets the angular gap between adjacent sectors in degrees.

Parameters

NameType
insetSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder InnerRadius(float ratio)

Sets the sector inner-radius ratio, where zero produces a pie slice and positive values produce a ring.

Parameters

NameType
ratioSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder OuterRadius(float ratio)

Sets the sector outer-radius ratio relative to the available plot radius.

Parameters

NameType
ratioSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder Stacking(MarkStackingMethod method)

Selects how marks sharing a position are combined, normalized, or centered.

Parameters

NameType
methodChartGuru.MarkStackingMethod

Returns

ChartGuru.ChartBuilder

public Chart Build()

Materializes the configured marks and modifiers into a ready-to-render Chart.

Returns

ChartGuru.Chart: The configured chart instance owned by this builder.

ChartScrollTargetBehavior(ChartScrollTargetBehavior)

Section titled “ChartScrollTargetBehavior(ChartScrollTargetBehavior)”
public ChartBuilder ChartScrollTargetBehavior(ChartScrollTargetBehavior behavior)

Defines how programmatic scroll requests align their target value within the visible chart domain. A null value disables target alignment.

Parameters

NameType
behaviorChartGuru.ChartScrollTargetBehavior

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartAccessibilityLabel(string label)

Sets the concise accessible name announced for the chart.

Parameters

NameType
labelSystem.String

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartAccessibilityRepresentation(string description)

Sets the longer accessible description that explains the chart’s data or purpose.

Parameters

NameType
descriptionSystem.String

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXAxisPreserveHeightAcrossZoom(bool preserve = true)

Controls whether horizontal-axis layout retains its measured height while the visible domain changes during zoom.

Parameters

NameType
preserveSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartOverlay(Action<ChartProxy> callback)

Registers a callback that receives the chart proxy after layout so callers can position overlay content in chart coordinates.

Parameters

NameType
callbackSystem.Action{ChartGuru.ChartProxy}

Returns

ChartGuru.ChartBuilder

ChartGesture(Func<ChartProxy, ChartGesture>)

Section titled “ChartGesture(Func<ChartProxy, ChartGesture>)”
public ChartBuilder ChartGesture(Func<ChartProxy, ChartGesture> gestureFactory)

Registers a factory that creates the gesture handler bound to the built chart’s coordinate proxy.

Parameters

NameType
gestureFactorySystem.Func{ChartGuru.ChartProxy,ChartGuru.ChartGesture}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartGesture(Action<ChartProxy, Vector2> onGesture)

Registers a gesture callback that receives both the chart coordinate proxy and the gesture position.

Parameters

NameType
onGestureSystem.Action{ChartGuru.ChartProxy,UnityEngine.Vector2}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXScale(float min, float max)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
minSystem.Single
maxSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYScale(float min, float max)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
minSystem.Single
maxSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXScale(float domainMin, float domainMax, ScaleType? type = null)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainMinSystem.Single
domainMaxSystem.Single
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

ChartXScale(float, float, ScaleType, double)

Section titled “ChartXScale(float, float, ScaleType, double)”
public ChartBuilder ChartXScale(float domainMin, float domainMax, ScaleType type, double scaleParameter)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainMinSystem.Single
domainMaxSystem.Single
typeChartGuru.ScaleType
scaleParameterSystem.Double

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXScale(ClosedRange<float> domain, ScaleType? type = null)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXScale(ScaleType type)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
typeChartGuru.ScaleType

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXScale(ScaleType type, double scaleParameter)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
typeChartGuru.ScaleType
scaleParameterSystem.Double

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXScaleRange(ClosedRange<float> range)

Overrides the normalized output range used by the horizontal scale.

Parameters

NameType
rangeChartGuru.ClosedRange{System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXScaleRange(PlotDimensionRange range)

Overrides the normalized output range used by the horizontal scale.

Parameters

NameType
rangeChartGuru.PlotDimensionRange

Returns

ChartGuru.ChartBuilder

ChartXScale(ClosedRange, PlotDimensionRange, ScaleType?)

Section titled “ChartXScale(ClosedRange, PlotDimensionRange, ScaleType?)”
public ChartBuilder ChartXScale(ClosedRange<float> domain, PlotDimensionRange range, ScaleType? type = null)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}
rangeChartGuru.PlotDimensionRange
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

ChartXScale(ClosedRange, ClosedRange, ScaleType?)

Section titled “ChartXScale(ClosedRange, ClosedRange, ScaleType?)”
public ChartBuilder ChartXScale(ClosedRange<float> domain, ClosedRange<float> range, ScaleType? type = null)

Configures the horizontal value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}
rangeChartGuru.ClosedRange{System.Single}
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYScale(float domainMin, float domainMax, ScaleType? type = null)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainMinSystem.Single
domainMaxSystem.Single
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

ChartYScale(float, float, ScaleType, double)

Section titled “ChartYScale(float, float, ScaleType, double)”
public ChartBuilder ChartYScale(float domainMin, float domainMax, ScaleType type, double scaleParameter)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainMinSystem.Single
domainMaxSystem.Single
typeChartGuru.ScaleType
scaleParameterSystem.Double

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYScale(ClosedRange<float> domain, ScaleType? type = null)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYScale(ScaleType type)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
typeChartGuru.ScaleType

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYScale(ScaleType type, double scaleParameter)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
typeChartGuru.ScaleType
scaleParameterSystem.Double

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYScaleRange(ClosedRange<float> range)

Overrides the normalized output range used by the vertical scale.

Parameters

NameType
rangeChartGuru.ClosedRange{System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYScaleRange(PlotDimensionRange range)

Overrides the normalized output range used by the vertical scale.

Parameters

NameType
rangeChartGuru.PlotDimensionRange

Returns

ChartGuru.ChartBuilder

ChartYScale(ClosedRange, PlotDimensionRange, ScaleType?)

Section titled “ChartYScale(ClosedRange, PlotDimensionRange, ScaleType?)”
public ChartBuilder ChartYScale(ClosedRange<float> domain, PlotDimensionRange range, ScaleType? type = null)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}
rangeChartGuru.PlotDimensionRange
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

ChartYScale(ClosedRange, ClosedRange, ScaleType?)

Section titled “ChartYScale(ClosedRange, ClosedRange, ScaleType?)”
public ChartBuilder ChartYScale(ClosedRange<float> domain, ClosedRange<float> range, ScaleType? type = null)

Configures the vertical value domain, scale type, or transform used to project mark data.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}
rangeChartGuru.ClosedRange{System.Single}
typeSystem.Nullable{ChartGuru.ScaleType}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartScrollableAxes(ScrollableAxes axes)

Selects which axes expose a movable visible domain when chart content exceeds the viewport.

Parameters

NameType
axesChartGuru.ScrollableAxes

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXVisibleDomain(ClosedRange<float> domain)

Sets the horizontal data interval currently visible inside a scrollable chart.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartXVisibleDomain(float length)

Sets the horizontal data interval currently visible inside a scrollable chart.

Parameters

NameType
lengthSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYVisibleDomain(ClosedRange<float> domain)

Sets the vertical data interval currently visible inside a scrollable chart.

Parameters

NameType
domainChartGuru.ClosedRange{System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartYVisibleDomain(float length)

Sets the vertical data interval currently visible inside a scrollable chart.

Parameters

NameType
lengthSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartScrollPositionX(float value)

Sets the initial horizontal domain value shown at the leading edge of a scrollable chart.

Parameters

NameType
valueSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartScrollPositionY(float value)

Sets the initial vertical domain value shown at the leading edge of a scrollable chart.

Parameters

NameType
valueSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartScrollPosition(float? initialX = null, float? initialY = null)

Sets either or both initial domain positions without changing an axis whose nullable argument is omitted.

Parameters

NameType
initialXSystem.Nullable{System.Single}
initialYSystem.Nullable{System.Single}

Returns

ChartGuru.ChartBuilder

public ChartBuilder Stacked()

Sets the interpolation method for line and area marks. Swift Charts equivalent: .InterpolationMethod(.catmullRom)

Returns

ChartGuru.ChartBuilder

public ChartBuilder Normalized()

Shortcut for Stacking(MarkStackingMethod.Normalized).

Returns

ChartGuru.ChartBuilder

public ChartBuilder Centered()

Shortcut for Stacking(MarkStackingMethod.Center).

Returns

ChartGuru.ChartBuilder

TrendLine(IEnumerable, Func<T, float>, Func<T, float>, RegressionType, Color?, float)

Section titled “TrendLine(IEnumerable, Func<T, float>, Func<T, float>, RegressionType, Color?, float)”
public ChartBuilder TrendLine<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector, RegressionType type = RegressionType.Linear, Color? color = null, float lineWidth = 2)

Adds a trend line overlay computed from the existing marks in this builder. Swift Charts equivalent: LinearRegressionPlot(x:y:).

Parameters

NameType
dataSystem.Collections.Generic.IEnumerable{{T}}
xSelectorSystem.Func{{T},System.Single}
ySelectorSystem.Func{{T},System.Single}
typeChartGuru.RegressionType
colorSystem.Nullable{UnityEngine.Color}
lineWidthSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartLegend(LegendPosition position)

Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.

Parameters

NameType
positionChartGuru.LegendPosition

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartLegend(LegendPosition position, float size)

Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.

Parameters

NameType
positionChartGuru.LegendPosition
sizeSystem.Single

Returns

ChartGuru.ChartBuilder

ChartLegend(LegendPosition, LegendAlignment)

Section titled “ChartLegend(LegendPosition, LegendAlignment)”
public ChartBuilder ChartLegend(LegendPosition position, LegendAlignment alignment)

Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.

Parameters

NameType
positionChartGuru.LegendPosition
alignmentChartGuru.LegendAlignment

Returns

ChartGuru.ChartBuilder

ChartLegend(LegendPosition, LegendAlignment, float)

Section titled “ChartLegend(LegendPosition, LegendAlignment, float)”
public ChartBuilder ChartLegend(LegendPosition position, LegendAlignment alignment, float size)

Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.

Parameters

NameType
positionChartGuru.LegendPosition
alignmentChartGuru.LegendAlignment
sizeSystem.Single

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartLegend(LegendVisibility visibility)

Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.

Parameters

NameType
visibilityChartGuru.LegendVisibility

Returns

ChartGuru.ChartBuilder

ChartLegendLayoutReference(LegendLayoutReference)

Section titled “ChartLegendLayoutReference(LegendLayoutReference)”
public ChartBuilder ChartLegendLayoutReference(LegendLayoutReference reference)

Chooses whether top and bottom legends align and wrap within the plot frame or the full chart frame.

Parameters

NameType
referenceChartGuru.LegendLayoutReference

Returns

ChartGuru.ChartBuilder

public ChartBuilder HideLegend()

Suppresses the legend regardless of the automatic placement selected by the chart type.

Returns

ChartGuru.ChartBuilder

ChartLegend(Action<LegendItemBuilder, LegendSeriesInfo>)

Section titled “ChartLegend(Action<LegendItemBuilder, LegendSeriesInfo>)”
public ChartBuilder ChartLegend(Action<LegendItemBuilder, LegendSeriesInfo> itemRenderer)

Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.

Parameters

NameType
itemRendererSystem.Action{ChartGuru.LegendItemBuilder,ChartGuru.LegendSeriesInfo}

Returns

ChartGuru.ChartBuilder

public ChartBuilder ShowDataLabels(bool show = true)

Controls whether supported marks render their formatted values as data labels.

Parameters

NameType
showSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder ChartDataLabels(bool visible = true)

Controls whether supported marks render their formatted values as data labels.

Parameters

NameType
visibleSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder HideDataLabels()

Suppresses formatted value labels on all generated marks.

Returns

ChartGuru.ChartBuilder

public ChartBuilder DataLabelFormat(string format)

Sets the numeric format string used for generated data labels.

Parameters

NameType
formatSystem.String

Returns

ChartGuru.ChartBuilder

public ChartBuilder ShowAxisTitles(bool show = true)

Explicitly controls whether configured horizontal and vertical axis titles are rendered.

Parameters

NameType
showSystem.Boolean

Returns

ChartGuru.ChartBuilder

public ChartBuilder HideAxisTitles()

Suppresses configured titles on both chart axes.

Returns

ChartGuru.ChartBuilder

public ChartBuilder()

Creates an empty chart builder with Chart Guru’s production defaults.

public static implicit operator Chart(ChartBuilder builder)

Builds a chart implicitly from the fluent builder, applying the same default resolution as ChartBuilder.Build().

Parameters

NameType
builderChartGuru.ChartBuilder

Returns

ChartGuru.Chart

public float LastTrendLineRSquared { get; }

R² of the most recent ChartBuilder.AddTrendLinePlot<T>(IEnumerable<T>, Func<T, float>, Func<T, float>, RegressionType, int, int, Color?, float, float[], string) call. Defaults to NaN.

Returns

System.Single

public float? SelectedXValue { get; set; }

Gets or sets the selected X value. Setting fires OnXSelectionChanged. Swift Charts equivalent: .ChartXSelection(value: $selectedX)

Returns

System.Nullable{System.Single}

public float? SelectedYValue { get; set; }

Gets or sets the selected Y value. Setting fires OnYSelectionChanged. Swift Charts equivalent: .ChartYSelection(value: $selectedY)

Returns

System.Nullable{System.Single}

public float? SelectedAngleValue { get; set; }

Gets or sets the selected angle value for polar charts. Setting fires OnAngleSelectionChanged. Swift Charts equivalent: .ChartAngleSelection(value: $selectedAngle)

Returns

System.Nullable{System.Single}

public ClosedRange<float>? SelectedXRange { get; set; }

Gets or sets the selected X range. Setting fires OnXRangeSelectionChanged. Swift Charts equivalent: .ChartXSelection(range: $selectedRange)

Returns

System.Nullable{ChartGuru.ClosedRange{System.Single}}

public ClosedRange<float>? SelectedYRange { get; set; }

Gets or sets the selected Y range. Setting fires OnYRangeSelectionChanged. Swift Charts equivalent: .ChartYSelection(range: $selectedRange)

Returns

System.Nullable{ChartGuru.ClosedRange{System.Single}}

public event Action<float?> OnXSelectionChanged

Event fired when X selection value changes.

Returns

System.Action{System.Nullable{System.Single}}

public event Action<float?> OnYSelectionChanged

Event fired when Y selection value changes.

Returns

System.Action{System.Nullable{System.Single}}

public event Action<float?> OnAngleSelectionChanged

Event fired when angle selection value changes (for pie/donut charts).

Returns

System.Action{System.Nullable{System.Single}}

public event Action<ClosedRange<float>?> OnXRangeSelectionChanged

Event fired when X selection range changes.

Returns

System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}

public event Action<ClosedRange<float>?> OnYRangeSelectionChanged

Event fired when Y selection range changes.

Returns

System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}