ChartBuilder
public class ChartBuilderBuilds a ChartGuru.Chart through a Swift Charts-inspired fluent C# API.
Add marks and modifiers, then call ChartGuru.ChartBuilder.Build to resolve defaults,
categorical data, scales, layout, and interaction configuration.
Methods
Section titled “Methods”
Theme(ChartTheme)
Section titled “Theme(ChartTheme)”public ChartBuilder Theme(ChartTheme theme)Selects the theme whose colors, typography, and spacing provide defaults for the built chart.
Parameters
| Name | Type |
|---|---|
theme |
ChartGuru.ChartTheme |
Returns
ChartGuru.ChartBuilder
ChartXAxis(Action)
Section titled “ChartXAxis(Action)”public ChartBuilder ChartXAxis(Action<AxisBuilder> configure)Configures the horizontal axis from a callback, snapshot, or visibility policy and returns this chart builder.
Parameters
| Name | Type |
|---|---|
configure |
System.Action{ChartGuru.AxisBuilder} |
Returns
ChartGuru.ChartBuilder
ChartXAxisStyle(Action)
Section titled “ChartXAxisStyle(Action)”public ChartBuilder ChartXAxisStyle(Action<AxisBuilder> configure)Configures horizontal axis presentation through the supplied axis builder callback.
Parameters
| Name | Type |
|---|---|
configure |
System.Action{ChartGuru.AxisBuilder} |
Returns
ChartGuru.ChartBuilder
ChartXAxis(AxisConfig)
Section titled “ChartXAxis(AxisConfig)”public ChartBuilder ChartXAxis(AxisConfig config)Configures the horizontal axis from a callback, snapshot, or visibility policy and returns this chart builder.
Parameters
| Name | Type |
|---|---|
config |
ChartGuru.AxisConfig |
Returns
ChartGuru.ChartBuilder
ChartYAxis(Action)
Section titled “ChartYAxis(Action)”public ChartBuilder ChartYAxis(Action<AxisBuilder> configure)Configures the vertical axis from a callback, snapshot, or visibility policy and returns this chart builder.
Parameters
| Name | Type |
|---|---|
configure |
System.Action{ChartGuru.AxisBuilder} |
Returns
ChartGuru.ChartBuilder
ChartYAxisStyle(Action)
Section titled “ChartYAxisStyle(Action)”public ChartBuilder ChartYAxisStyle(Action<AxisBuilder> configure)Configures vertical axis presentation through the supplied axis builder callback.
Parameters
| Name | Type |
|---|---|
configure |
System.Action{ChartGuru.AxisBuilder} |
Returns
ChartGuru.ChartBuilder
ChartYAxis(AxisConfig)
Section titled “ChartYAxis(AxisConfig)”public ChartBuilder ChartYAxis(AxisConfig config)Configures the vertical axis from a callback, snapshot, or visibility policy and returns this chart builder.
Parameters
| Name | Type |
|---|---|
config |
ChartGuru.AxisConfig |
Returns
ChartGuru.ChartBuilder
ChartXAxis(AxisVisibility)
Section titled “ChartXAxis(AxisVisibility)”public ChartBuilder ChartXAxis(AxisVisibility visibility)Configures the horizontal axis from a callback, snapshot, or visibility policy and returns this chart builder.
Parameters
| Name | Type |
|---|---|
visibility |
ChartGuru.AxisVisibility |
Returns
ChartGuru.ChartBuilder
ChartYAxis(AxisVisibility)
Section titled “ChartYAxis(AxisVisibility)”public ChartBuilder ChartYAxis(AxisVisibility visibility)Configures the vertical axis from a callback, snapshot, or visibility policy and returns this chart builder.
Parameters
| Name | Type |
|---|---|
visibility |
ChartGuru.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
| Name | Type |
|---|---|
label |
System.String |
position |
ChartGuru.AxisLabelPosition |
alignment |
ChartGuru.AxisLabelAlignment |
spacing |
System.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
| Name | Type |
|---|---|
label |
System.String |
position |
ChartGuru.AxisLabelPosition |
alignment |
ChartGuru.AxisLabelAlignment |
spacing |
System.Single |
Returns
ChartGuru.ChartBuilder
HideAxes()
Section titled “HideAxes()”public ChartBuilder HideAxes()Hides both chart axes while preserving their configuration for later reuse.
Returns
ChartGuru.ChartBuilder
Animation(Animation)
Section titled “Animation(Animation)”public ChartBuilder Animation(Animation animation)Sets the animation applied when chart data or presentation changes; a disabled value updates immediately.
Parameters
| Name | Type |
|---|---|
animation |
ChartGuru.Animation |
Returns
ChartGuru.ChartBuilder
NoAnimation()
Section titled “NoAnimation()”public ChartBuilder NoAnimation()Disables data and presentation transition animation so the built chart updates immediately.
Returns
ChartGuru.ChartBuilder
Size(float, float)
Section titled “Size(float, float)”public ChartBuilder Size(float width, float height)Sets the requested chart width and height in pixels.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
height |
System.Single |
Returns
ChartGuru.ChartBuilder
Size(Vector2)
Section titled “Size(Vector2)”public ChartBuilder Size(Vector2 size)Sets the requested chart size in pixels.
Parameters
| Name | Type |
|---|---|
size |
UnityEngine.Vector2 |
Returns
ChartGuru.ChartBuilder
TinyPadding(float)
Section titled “TinyPadding(float)”public ChartBuilder TinyPadding(float padding)Sets the inset in pixels between a tiny chart’s content and its bounds.
Parameters
| Name | Type |
|---|---|
padding |
System.Single |
Returns
ChartGuru.ChartBuilder
TinyLineWidth(float)
Section titled “TinyLineWidth(float)”public ChartBuilder TinyLineWidth(float width)Sets the stroke width in pixels used by tiny line and area charts.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
Returns
ChartGuru.ChartBuilder
TinyShowMinMax(bool)
Section titled “TinyShowMinMax(bool)”public ChartBuilder TinyShowMinMax(bool show = true)Controls whether a tiny chart annotates its minimum and maximum values.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.ChartBuilder
TinyShowLastValue(bool)
Section titled “TinyShowLastValue(bool)”public ChartBuilder TinyShowLastValue(bool show = true)Controls whether a tiny chart annotates the final value in its series.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.ChartBuilder
TinyColors(Color, Color, Color?)
Section titled “TinyColors(Color, Color, Color?)”public ChartBuilder TinyColors(Color positive, Color negative, Color? neutral = null)Sets the colors used for positive, negative, and optionally neutral tiny-chart values.
Parameters
| Name | Type |
|---|---|
positive |
UnityEngine.Color |
negative |
UnityEngine.Color |
neutral |
System.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
| Name | Type |
|---|---|
xStart |
System.Single |
xEnd |
System.Single |
yStart |
System.Single |
yEnd |
System.Single |
color |
UnityEngine.Color |
Returns
ChartGuru.ChartBuilder
AlignsMarkStylesWithPlotArea(bool)
Section titled “AlignsMarkStylesWithPlotArea(bool)”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
| Name | Type |
|---|---|
aligned |
System.Boolean |
Returns
ChartGuru.ChartBuilder
TrendLine(RegressionType, Color?, float)
Section titled “TrendLine(RegressionType, Color?, float)”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
| Name | Type |
|---|---|
type |
ChartGuru.RegressionType |
color |
System.Nullable{UnityEngine.Color} |
lineWidth |
System.Single |
Returns
ChartGuru.ChartBuilder
Plot(Action)
Section titled “Plot(Action)”public ChartBuilder Plot(Action<PlotGroupBuilder> configure)Builds a configured plot group and appends its marks to the chart in group order.
Parameters
| Name | Type |
|---|---|
configure |
System.Action{ChartGuru.PlotGroupBuilder} |
Returns
ChartGuru.ChartBuilder
ChartAccessibilityAudioGraph(bool)
Section titled “ChartAccessibilityAudioGraph(bool)”public ChartBuilder ChartAccessibilityAudioGraph(bool enabled)Enables or disables the chart’s sonified data representation for accessibility playback.
Parameters
| Name | Type |
|---|---|
enabled |
System.Boolean |
Returns
ChartGuru.ChartBuilder
ChartXSelection(Action<float?>)
Section titled “ChartXSelection(Action<float?>)”public ChartBuilder ChartXSelection(Action<float?> onSelectionChanged)Binds horizontal single-value or range selection and registers the callback invoked when it changes.
Parameters
| Name | Type |
|---|---|
onSelectionChanged |
System.Action{System.Nullable{System.Single}} |
Returns
ChartGuru.ChartBuilder
ChartXSelection(Action<ClosedRange?>)
Section titled “ChartXSelection(Action<ClosedRange?>)”public ChartBuilder ChartXSelection(Action<ClosedRange<float>?> onRangeChanged)Binds horizontal single-value or range selection and registers the callback invoked when it changes.
Parameters
| Name | Type |
|---|---|
onRangeChanged |
System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}} |
Returns
ChartGuru.ChartBuilder
ChartYSelection(Action<float?>)
Section titled “ChartYSelection(Action<float?>)”public ChartBuilder ChartYSelection(Action<float?> onSelectionChanged)Binds vertical single-value or range selection and registers the callback invoked when it changes.
Parameters
| Name | Type |
|---|---|
onSelectionChanged |
System.Action{System.Nullable{System.Single}} |
Returns
ChartGuru.ChartBuilder
ChartYSelection(Action<ClosedRange?>)
Section titled “ChartYSelection(Action<ClosedRange?>)”public ChartBuilder ChartYSelection(Action<ClosedRange<float>?> onRangeChanged)Binds vertical single-value or range selection and registers the callback invoked when it changes.
Parameters
| Name | Type |
|---|---|
onRangeChanged |
System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}} |
Returns
ChartGuru.ChartBuilder
ChartAngleSelection(Action<float?>)
Section titled “ChartAngleSelection(Action<float?>)”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
| Name | Type |
|---|---|
onSelectionChanged |
System.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
| Name | Type |
|---|---|
scale |
System.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
| Name | Type |
|---|---|
scale |
System.Collections.Generic.Dictionary{System.String,UnityEngine.Color} |
Returns
ChartGuru.ChartBuilder
ChartForegroundStyleScale(Gradient)
Section titled “ChartForegroundStyleScale(Gradient)”public ChartBuilder ChartForegroundStyleScale(Gradient range)Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.
Parameters
| Name | Type |
|---|---|
range |
UnityEngine.Gradient |
Returns
ChartGuru.ChartBuilder
ChartForegroundStyleScale(ColorScale)
Section titled “ChartForegroundStyleScale(ColorScale)”public ChartBuilder ChartForegroundStyleScale(ColorScale scale)Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.
Parameters
| Name | Type |
|---|---|
scale |
ChartGuru.ColorScale |
Returns
ChartGuru.ChartBuilder
ColorScalePresetIndex(int)
Section titled “ColorScalePresetIndex(int)”public ChartBuilder ColorScalePresetIndex(int presetIndex)Selects the indexed built-in color palette used when no explicit foreground-style scale is supplied.
Parameters
| Name | Type |
|---|---|
presetIndex |
System.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
| Name | Type |
|---|---|
scale |
System.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
| Name | Type |
|---|---|
scale |
System.Collections.Generic.Dictionary{System.String,ChartGuru.SymbolShape} |
Returns
ChartGuru.ChartBuilder
ChartSymbolScale(string[], SymbolShape[])
Section titled “ChartSymbolScale(string[], SymbolShape[])”public ChartBuilder ChartSymbolScale(string[] domain, SymbolShape[] range)Maps symbol keys to shapes used by matching marks and legend entries.
Parameters
| Name | Type |
|---|---|
domain |
System.String[] |
range |
ChartGuru.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
| Name | Type |
|---|---|
scale |
System.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
| Name | Type |
|---|---|
scale |
System.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
| Name | Type |
|---|---|
domain |
System.String[] |
range |
ChartGuru.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
| Name | Type |
|---|---|
scale |
System.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
| Name | Type |
|---|---|
scale |
System.Collections.Generic.Dictionary{System.String,System.Single} |
Returns
ChartGuru.ChartBuilder
ChartSymbolSizeScale(string[], float[])
Section titled “ChartSymbolSizeScale(string[], float[])”public ChartBuilder ChartSymbolSizeScale(string[] domain, float[] range)Maps numeric or categorical symbol keys to rendered mark sizes.
Parameters
| Name | Type |
|---|---|
domain |
System.String[] |
range |
System.Single[] |
Returns
ChartGuru.ChartBuilder
ChartSymbolSizeScale(ClosedRange)
Section titled “ChartSymbolSizeScale(ClosedRange)”public ChartBuilder ChartSymbolSizeScale(ClosedRange<float> range)Maps numeric or categorical symbol keys to rendered mark sizes.
Parameters
| Name | Type |
|---|---|
range |
ChartGuru.ClosedRange{System.Single} |
Returns
ChartGuru.ChartBuilder
ChartForegroundStyleScale(Color[])
Section titled “ChartForegroundStyleScale(Color[])”public ChartBuilder ChartForegroundStyleScale(Color[] range)Maps series or style keys to chart colors so matching marks and legend entries use a consistent palette.
Parameters
| Name | Type |
|---|---|
range |
UnityEngine.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
| Name | Type |
|---|---|
domain |
System.String[] |
range |
UnityEngine.Color[] |
Returns
ChartGuru.ChartBuilder
ChartPlotStyle(Action)
Section titled “ChartPlotStyle(Action)”public ChartBuilder ChartPlotStyle(Action<PlotStyleBuilder> configure)Configures padding, clipping, background, and other presentation applied specifically to the plot area.
Parameters
| Name | Type |
|---|---|
configure |
System.Action{ChartGuru.PlotStyleBuilder} |
Returns
ChartGuru.ChartBuilder
ChartBarWidth(MarkDimension)
Section titled “ChartBarWidth(MarkDimension)”public ChartBuilder ChartBarWidth(MarkDimension width)Overrides the horizontal dimension used to size generated bar marks.
Parameters
| Name | Type |
|---|---|
width |
ChartGuru.MarkDimension |
Returns
ChartGuru.ChartBuilder
ChartBarHeight(MarkDimension)
Section titled “ChartBarHeight(MarkDimension)”public ChartBuilder ChartBarHeight(MarkDimension height)Overrides the vertical dimension used to size generated bar marks.
Parameters
| Name | Type |
|---|---|
height |
ChartGuru.MarkDimension |
Returns
ChartGuru.ChartBuilder
ChartBackground(Color)
Section titled “ChartBackground(Color)”public ChartBuilder ChartBackground(Color color)Configures the chart background fill or callback without changing the plot-area background.
Parameters
| Name | Type |
|---|---|
color |
UnityEngine.Color |
Returns
ChartGuru.ChartBuilder
ChartBorder(Color, float, float)
Section titled “ChartBorder(Color, float, float)”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
| Name | Type |
|---|---|
color |
UnityEngine.Color |
width |
System.Single |
cornerRadius |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartPieLabelMode(PieLabelMode)
Section titled “ChartPieLabelMode(PieLabelMode)”public ChartBuilder ChartPieLabelMode(PieLabelMode mode)Selects how labels for pie and donut sectors are positioned or suppressed.
Parameters
| Name | Type |
|---|---|
mode |
ChartGuru.PieLabelMode |
Returns
ChartGuru.ChartBuilder
DataLabelColor(Color)
Section titled “DataLabelColor(Color)”public ChartBuilder DataLabelColor(Color color)Overrides the data-label color. A fully transparent color clears the override and restores automatic styling.
Parameters
| Name | Type |
|---|---|
color |
UnityEngine.Color |
Returns
ChartGuru.ChartBuilder
AxisLabelColor(Color)
Section titled “AxisLabelColor(Color)”public ChartBuilder AxisLabelColor(Color color)Overrides the axis value-label color. A fully transparent color clears the override and restores automatic styling.
Parameters
| Name | Type |
|---|---|
color |
UnityEngine.Color |
Returns
ChartGuru.ChartBuilder
ChartBackground(Gradient)
Section titled “ChartBackground(Gradient)”public ChartBuilder ChartBackground(Gradient gradient)Configures the chart background fill or callback without changing the plot-area background.
Parameters
| Name | Type |
|---|---|
gradient |
UnityEngine.Gradient |
Returns
ChartGuru.ChartBuilder
ChartBackground(LinearGradientStyle)
Section titled “ChartBackground(LinearGradientStyle)”public ChartBuilder ChartBackground(LinearGradientStyle gradient)Configures the chart background fill or callback without changing the plot-area background.
Parameters
| Name | Type |
|---|---|
gradient |
ChartGuru.LinearGradientStyle |
Returns
ChartGuru.ChartBuilder
ChartBackground(FourCornerGradient)
Section titled “ChartBackground(FourCornerGradient)”public ChartBuilder ChartBackground(FourCornerGradient fourCorner)Configures the chart background fill or callback without changing the plot-area background.
Parameters
| Name | Type |
|---|---|
fourCorner |
ChartGuru.FourCornerGradient |
Returns
ChartGuru.ChartBuilder
ChartBackground(Action)
Section titled “ChartBackground(Action)”public ChartBuilder ChartBackground(Action<ChartProxy> callback)Configures the chart background fill or callback without changing the plot-area background.
Parameters
| Name | Type |
|---|---|
callback |
System.Action{ChartGuru.ChartProxy} |
Returns
ChartGuru.ChartBuilder
Add(IChartMark)
Section titled “Add(IChartMark)”public ChartBuilder Add(IChartMark mark)Appends a non-null mark in rendering order, expanding generated trend-line content into its sampled marks.
Parameters
| Name | Type |
|---|---|
mark |
ChartGuru.IChartMark |
Returns
ChartGuru.ChartBuilder
Add(IEnumerable)
Section titled “Add(IEnumerable)”public ChartBuilder Add(IEnumerable<IChartMark> marks)Appends non-null marks in enumeration order, expanding generated content where required. A null sequence is ignored.
Parameters
| Name | Type |
|---|---|
marks |
System.Collections.Generic.IEnumerable{ChartGuru.IChartMark} |
Returns
ChartGuru.ChartBuilder
ForEach(IEnumerable, Func<T, IChartMark>)
Section titled “ForEach(IEnumerable, Func<T, IChartMark>)”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
ChartGuru.Chart.Create%60%601(System.Collections.Generic.IEnumerable%7b%60%600%7d%2cSystem.Func%7b%60%600%2cChartGuru.IChartMark%7d) marks — for example a ChartGuru.LineMark
on top of an ChartGuru.AreaMark.
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
factory |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
factory |
System.Func{{T},System.Collections.Generic.IEnumerable{ChartGuru.IChartMark}} |
Returns
ChartGuru.ChartBuilder
AddComposites(IEnumerable)
Section titled “AddComposites(IEnumerable)”public ChartBuilder AddComposites(IEnumerable<IChartContent> composites)Adds composites to this Chart Builder and preserves its order for subsequent chart layout.
Parameters
| Name | Type |
|---|---|
composites |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
factory |
System.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)));
AddBar(float, float)
Section titled “AddBar(float, float)”public ChartBuilder AddBar(float x, float y)Adds bar to this Chart Builder and preserves its order for subsequent chart layout.
Parameters
| Name | Type |
|---|---|
x |
System.Single |
y |
System.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 ChartGuru.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
value |
System.Func{{T},System.Single} |
bins |
ChartGuru.NumberBins{System.Single} |
aggregate |
System.Func{System.Collections.Generic.List{{T}},System.Single} |
color |
System.Nullable{UnityEngine.Color} |
seriesKey |
System.String |
Returns
ChartGuru.ChartBuilder
AddLine(float, float)
Section titled “AddLine(float, float)”public ChartBuilder AddLine(float x, float y)Adds line to this Chart Builder and preserves its order for subsequent chart layout.
Parameters
| Name | Type |
|---|---|
x |
System.Single |
y |
System.Single |
Returns
ChartGuru.ChartBuilder
AddPoint(float, float)
Section titled “AddPoint(float, float)”public ChartBuilder AddPoint(float x, float y)Adds point to this Chart Builder and preserves its order for subsequent chart layout.
Parameters
| Name | Type |
|---|---|
x |
System.Single |
y |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartType(ChartType)
Section titled “ChartType(ChartType)”public ChartBuilder ChartType(ChartType type)Explicitly selects the chart family, preventing automatic mark-based type inference during the build.
Parameters
| Name | Type |
|---|---|
type |
ChartGuru.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
| Name | Type |
|---|---|
function |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.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
| Name | Type |
|---|---|
function |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.Int32 |
color |
UnityEngine.Color |
seriesKey |
System.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
| Name | Type |
|---|---|
function |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.Int32 |
color |
UnityEngine.Color |
lineWidth |
System.Single |
seriesKey |
System.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
| Name | Type |
|---|---|
function |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.Int32 |
color |
UnityEngine.Color |
lineWidth |
System.Single |
dash |
System.Single[] |
seriesKey |
System.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
| Name | Type |
|---|---|
function |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.Int32 |
color |
UnityEngine.Color |
style |
ChartGuru.StrokeStyle |
seriesKey |
System.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
| Name | Type |
|---|---|
intercept |
System.Single |
slope |
System.Single |
domainMin |
System.Single |
domainMax |
System.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 ChartGuru.LinePlot sampling the resulting function across the data’s
observed X domain. The R² is exposed via ChartGuru.ChartBuilder.LastTrendLineRSquared.
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
y |
System.Func{{T},System.Single} |
regression |
ChartGuru.RegressionType |
polynomialDegree |
System.Int32 |
samples |
System.Int32 |
color |
System.Nullable{UnityEngine.Color} |
lineWidth |
System.Single |
dash |
System.Single[] |
seriesKey |
System.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
| Name | Type |
|---|---|
function |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.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
| Name | Type |
|---|---|
function |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.Int32 |
color |
UnityEngine.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
| Name | Type |
|---|---|
upperFunction |
System.Func{System.Single,System.Single} |
lowerFunction |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.Int32 |
color |
System.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
| Name | Type |
|---|---|
x |
System.Single |
open |
System.Single |
high |
System.Single |
low |
System.Single |
close |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{ChartGuru.OHLCData} |
bullishColor |
System.Nullable{UnityEngine.Color} |
bearishColor |
System.Nullable{UnityEngine.Color} |
Returns
ChartGuru.ChartBuilder
AddRangeBar(float, float, float)
Section titled “AddRangeBar(float, float, float)”public ChartBuilder AddRangeBar(float x, float yStart, float yEnd)Adds a range bar (for waterfall, gantt, or range charts).
Parameters
| Name | Type |
|---|---|
x |
System.Single |
yStart |
System.Single |
yEnd |
System.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
| Name | Type |
|---|---|
xStart |
System.Single |
xEnd |
System.Single |
y |
System.Single |
Returns
ChartGuru.ChartBuilder
AddComposite(IChartContent)
Section titled “AddComposite(IChartContent)”public ChartBuilder AddComposite(IChartContent composite)Adds marks from a composite chart content (like CandleStickMark).
Parameters
| Name | Type |
|---|---|
composite |
ChartGuru.IChartContent |
Returns
ChartGuru.ChartBuilder
HeatMap(float[,], ColorScale)
Section titled “HeatMap(float[,], ColorScale)”public ChartBuilder HeatMap(float[,] data, ColorScale colorScale = null)Creates a heatmap from a 2D data array.
Parameters
| Name | Type |
|---|---|
data |
System.Single[,] |
colorScale |
ChartGuru.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
y |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
category |
System.Func{{T},System.String} |
y |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
y |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
y |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
category |
System.Func{{T},System.String} |
y |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
y |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
yStart |
System.Func{{T},System.Single} |
yEnd |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
xStart |
System.Func{{T},System.Single} |
xEnd |
System.Func{{T},System.Single} |
yStart |
System.Func{{T},System.Single} |
yEnd |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
angle |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
angle |
System.Func{{T},System.Single} |
innerRadius |
System.Single |
outerRadius |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
y |
System.Func{{T},System.Single} |
Returns
ChartGuru.ChartBuilder
AddRulePlot(IEnumerable, Func<T, float>)
Section titled “AddRulePlot(IEnumerable, Func<T, float>)”public ChartBuilder AddRulePlot<T>(IEnumerable<T> data, Func<T, float> x)Swift-shaped alias for ChartGuru.ChartBuilder.AddVerticalRules%60%601(System.Collections.Generic.IEnumerable%7b%60%600%7d%2cSystem.Func%7b%60%600%2cSystem.Single%7d).
Swift Charts equivalent: RulePlot(data, x: .value).
Parameters
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
x |
System.Func{{T},System.Single} |
yStart |
System.Func{{T},System.Single} |
yEnd |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
xStart |
System.Func{{T},System.Single} |
xEnd |
System.Func{{T},System.Single} |
y |
System.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
| Name | Type |
|---|---|
yLow |
System.Func{System.Single,System.Single} |
yHigh |
System.Func{System.Single,System.Single} |
domainMin |
System.Single |
domainMax |
System.Single |
samples |
System.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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
angle |
System.Func{{T},System.Single} |
innerRadius |
System.Single |
outerRadius |
System.Single |
angularInset |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartTitle(string)
Section titled “ChartTitle(string)”public ChartBuilder ChartTitle(string title)Sets the chart title text.
Parameters
| Name | Type |
|---|---|
title |
System.String |
Returns
ChartGuru.ChartBuilder
ChartSubtitle(string)
Section titled “ChartSubtitle(string)”public ChartBuilder ChartSubtitle(string subtitle)Sets the chart subtitle text.
Parameters
| Name | Type |
|---|---|
subtitle |
System.String |
Returns
ChartGuru.ChartBuilder
ChartTitlePosition(ChartTitlePosition)
Section titled “ChartTitlePosition(ChartTitlePosition)”public ChartBuilder ChartTitlePosition(ChartTitlePosition position)Sets the position and alignment of the chart title/subtitle block.
Parameters
| Name | Type |
|---|---|
position |
ChartGuru.ChartTitlePosition |
Returns
ChartGuru.ChartBuilder
ShowAreaLine(bool)
Section titled “ShowAreaLine(bool)”public ChartBuilder ShowAreaLine(bool show)Controls whether area charts draw a boundary stroke above the filled region.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.ChartBuilder
InterpolationMethod(InterpolationMethod)
Section titled “InterpolationMethod(InterpolationMethod)”public ChartBuilder InterpolationMethod(InterpolationMethod method)Selects how adjacent data points are connected, affecting line and area geometry between samples.
Parameters
| Name | Type |
|---|---|
method |
ChartGuru.InterpolationMethod |
Returns
ChartGuru.ChartBuilder
LineStyle(float)
Section titled “LineStyle(float)”public ChartBuilder LineStyle(float lineWidth)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
lineWidth |
System.Single |
Returns
ChartGuru.ChartBuilder
LineStyle(StrokeStyle)
Section titled “LineStyle(StrokeStyle)”public ChartBuilder LineStyle(StrokeStyle style)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
style |
ChartGuru.StrokeStyle |
Returns
ChartGuru.ChartBuilder
CornerRadius(float)
Section titled “CornerRadius(float)”public ChartBuilder CornerRadius(float radius)Sets corner rounding for supported bar, rectangle, or sector geometry.
Parameters
| Name | Type |
|---|---|
radius |
System.Single |
Returns
ChartGuru.ChartBuilder
Opacity(float)
Section titled “Opacity(float)”public ChartBuilder Opacity(float value)Configures the alpha multiplier for generated marks; selector overloads evaluate it separately for each datum.
Parameters
| Name | Type |
|---|---|
value |
System.Single |
Returns
ChartGuru.ChartBuilder
SymbolSize(float)
Section titled “SymbolSize(float)”public ChartBuilder SymbolSize(float size)Sets rendered point-symbol area; selector overloads resolve a separate size for each source datum.
Parameters
| Name | Type |
|---|---|
size |
System.Single |
Returns
ChartGuru.ChartBuilder
Symbol(SymbolShape)
Section titled “Symbol(SymbolShape)”public ChartBuilder Symbol(SymbolShape shape)Sets the point symbol; selector overloads resolve a separate shape for each source datum.
Parameters
| Name | Type |
|---|---|
shape |
ChartGuru.SymbolShape |
Returns
ChartGuru.ChartBuilder
Symbol(SymbolShape, float)
Section titled “Symbol(SymbolShape, float)”public ChartBuilder Symbol(SymbolShape shape, float size)Sets the point symbol; selector overloads resolve a separate shape for each source datum.
Parameters
| Name | Type |
|---|---|
shape |
ChartGuru.SymbolShape |
size |
System.Single |
Returns
ChartGuru.ChartBuilder
ForegroundStyle(Color)
Section titled “ForegroundStyle(Color)”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
| Name | Type |
|---|---|
color |
UnityEngine.Color |
Returns
ChartGuru.ChartBuilder
ForegroundStyle(LinearGradientStyle)
Section titled “ForegroundStyle(LinearGradientStyle)”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
| Name | Type |
|---|---|
gradient |
ChartGuru.LinearGradientStyle |
Returns
ChartGuru.ChartBuilder
AngularInset(float)
Section titled “AngularInset(float)”public ChartBuilder AngularInset(float inset)Sets the angular gap between adjacent sectors in degrees.
Parameters
| Name | Type |
|---|---|
inset |
System.Single |
Returns
ChartGuru.ChartBuilder
InnerRadius(float)
Section titled “InnerRadius(float)”public ChartBuilder InnerRadius(float ratio)Sets the sector inner-radius ratio, where zero produces a pie slice and positive values produce a ring.
Parameters
| Name | Type |
|---|---|
ratio |
System.Single |
Returns
ChartGuru.ChartBuilder
OuterRadius(float)
Section titled “OuterRadius(float)”public ChartBuilder OuterRadius(float ratio)Sets the sector outer-radius ratio relative to the available plot radius.
Parameters
| Name | Type |
|---|---|
ratio |
System.Single |
Returns
ChartGuru.ChartBuilder
Stacking(MarkStackingMethod)
Section titled “Stacking(MarkStackingMethod)”public ChartBuilder Stacking(MarkStackingMethod method)Selects how marks sharing a position are combined, normalized, or centered.
Parameters
| Name | Type |
|---|---|
method |
ChartGuru.MarkStackingMethod |
Returns
ChartGuru.ChartBuilder
Build()
Section titled “Build()”public Chart Build()Materializes the configured marks and modifiers into a ready-to-render ChartGuru.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
| Name | Type |
|---|---|
behavior |
ChartGuru.ChartScrollTargetBehavior |
Returns
ChartGuru.ChartBuilder
ChartAccessibilityLabel(string)
Section titled “ChartAccessibilityLabel(string)”public ChartBuilder ChartAccessibilityLabel(string label)Sets the concise accessible name announced for the chart.
Parameters
| Name | Type |
|---|---|
label |
System.String |
Returns
ChartGuru.ChartBuilder
ChartAccessibilityRepresentation(string)
Section titled “ChartAccessibilityRepresentation(string)”public ChartBuilder ChartAccessibilityRepresentation(string description)Sets the longer accessible description that explains the chart’s data or purpose.
Parameters
| Name | Type |
|---|---|
description |
System.String |
Returns
ChartGuru.ChartBuilder
ChartXAxisPreserveHeightAcrossZoom(bool)
Section titled “ChartXAxisPreserveHeightAcrossZoom(bool)”public ChartBuilder ChartXAxisPreserveHeightAcrossZoom(bool preserve = true)Controls whether horizontal-axis layout retains its measured height while the visible domain changes during zoom.
Parameters
| Name | Type |
|---|---|
preserve |
System.Boolean |
Returns
ChartGuru.ChartBuilder
ChartOverlay(Action)
Section titled “ChartOverlay(Action)”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
| Name | Type |
|---|---|
callback |
System.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
| Name | Type |
|---|---|
gestureFactory |
System.Func{ChartGuru.ChartProxy,ChartGuru.ChartGesture} |
Returns
ChartGuru.ChartBuilder
ChartGesture(Action<ChartProxy, Vector2>)
Section titled “ChartGesture(Action<ChartProxy, Vector2>)”public ChartBuilder ChartGesture(Action<ChartProxy, Vector2> onGesture)Registers a gesture callback that receives both the chart coordinate proxy and the gesture position.
Parameters
| Name | Type |
|---|---|
onGesture |
System.Action{ChartGuru.ChartProxy,UnityEngine.Vector2} |
Returns
ChartGuru.ChartBuilder
ChartXScale(float, float)
Section titled “ChartXScale(float, float)”public ChartBuilder ChartXScale(float min, float max)Configures the horizontal value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
min |
System.Single |
max |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartYScale(float, float)
Section titled “ChartYScale(float, float)”public ChartBuilder ChartYScale(float min, float max)Configures the vertical value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
min |
System.Single |
max |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartXScale(float, float, ScaleType?)
Section titled “ChartXScale(float, float, ScaleType?)”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
| Name | Type |
|---|---|
domainMin |
System.Single |
domainMax |
System.Single |
type |
System.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
| Name | Type |
|---|---|
domainMin |
System.Single |
domainMax |
System.Single |
type |
ChartGuru.ScaleType |
scaleParameter |
System.Double |
Returns
ChartGuru.ChartBuilder
ChartXScale(ClosedRange, ScaleType?)
Section titled “ChartXScale(ClosedRange, ScaleType?)”public ChartBuilder ChartXScale(ClosedRange<float> domain, ScaleType? type = null)Configures the horizontal value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
type |
System.Nullable{ChartGuru.ScaleType} |
Returns
ChartGuru.ChartBuilder
ChartXScale(ScaleType)
Section titled “ChartXScale(ScaleType)”public ChartBuilder ChartXScale(ScaleType type)Configures the horizontal value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
type |
ChartGuru.ScaleType |
Returns
ChartGuru.ChartBuilder
ChartXScale(ScaleType, double)
Section titled “ChartXScale(ScaleType, double)”public ChartBuilder ChartXScale(ScaleType type, double scaleParameter)Configures the horizontal value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
type |
ChartGuru.ScaleType |
scaleParameter |
System.Double |
Returns
ChartGuru.ChartBuilder
ChartXScaleRange(ClosedRange)
Section titled “ChartXScaleRange(ClosedRange)”public ChartBuilder ChartXScaleRange(ClosedRange<float> range)Overrides the normalized output range used by the horizontal scale.
Parameters
| Name | Type |
|---|---|
range |
ChartGuru.ClosedRange{System.Single} |
Returns
ChartGuru.ChartBuilder
ChartXScaleRange(PlotDimensionRange)
Section titled “ChartXScaleRange(PlotDimensionRange)”public ChartBuilder ChartXScaleRange(PlotDimensionRange range)Overrides the normalized output range used by the horizontal scale.
Parameters
| Name | Type |
|---|---|
range |
ChartGuru.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
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
range |
ChartGuru.PlotDimensionRange |
type |
System.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
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
range |
ChartGuru.ClosedRange{System.Single} |
type |
System.Nullable{ChartGuru.ScaleType} |
Returns
ChartGuru.ChartBuilder
ChartYScale(float, float, ScaleType?)
Section titled “ChartYScale(float, float, ScaleType?)”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
| Name | Type |
|---|---|
domainMin |
System.Single |
domainMax |
System.Single |
type |
System.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
| Name | Type |
|---|---|
domainMin |
System.Single |
domainMax |
System.Single |
type |
ChartGuru.ScaleType |
scaleParameter |
System.Double |
Returns
ChartGuru.ChartBuilder
ChartYScale(ClosedRange, ScaleType?)
Section titled “ChartYScale(ClosedRange, ScaleType?)”public ChartBuilder ChartYScale(ClosedRange<float> domain, ScaleType? type = null)Configures the vertical value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
type |
System.Nullable{ChartGuru.ScaleType} |
Returns
ChartGuru.ChartBuilder
ChartYScale(ScaleType)
Section titled “ChartYScale(ScaleType)”public ChartBuilder ChartYScale(ScaleType type)Configures the vertical value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
type |
ChartGuru.ScaleType |
Returns
ChartGuru.ChartBuilder
ChartYScale(ScaleType, double)
Section titled “ChartYScale(ScaleType, double)”public ChartBuilder ChartYScale(ScaleType type, double scaleParameter)Configures the vertical value domain, scale type, or transform used to project mark data.
Parameters
| Name | Type |
|---|---|
type |
ChartGuru.ScaleType |
scaleParameter |
System.Double |
Returns
ChartGuru.ChartBuilder
ChartYScaleRange(ClosedRange)
Section titled “ChartYScaleRange(ClosedRange)”public ChartBuilder ChartYScaleRange(ClosedRange<float> range)Overrides the normalized output range used by the vertical scale.
Parameters
| Name | Type |
|---|---|
range |
ChartGuru.ClosedRange{System.Single} |
Returns
ChartGuru.ChartBuilder
ChartYScaleRange(PlotDimensionRange)
Section titled “ChartYScaleRange(PlotDimensionRange)”public ChartBuilder ChartYScaleRange(PlotDimensionRange range)Overrides the normalized output range used by the vertical scale.
Parameters
| Name | Type |
|---|---|
range |
ChartGuru.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
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
range |
ChartGuru.PlotDimensionRange |
type |
System.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
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
range |
ChartGuru.ClosedRange{System.Single} |
type |
System.Nullable{ChartGuru.ScaleType} |
Returns
ChartGuru.ChartBuilder
ChartScrollableAxes(ScrollableAxes)
Section titled “ChartScrollableAxes(ScrollableAxes)”public ChartBuilder ChartScrollableAxes(ScrollableAxes axes)Selects which axes expose a movable visible domain when chart content exceeds the viewport.
Parameters
| Name | Type |
|---|---|
axes |
ChartGuru.ScrollableAxes |
Returns
ChartGuru.ChartBuilder
ChartXVisibleDomain(ClosedRange)
Section titled “ChartXVisibleDomain(ClosedRange)”public ChartBuilder ChartXVisibleDomain(ClosedRange<float> domain)Sets the horizontal data interval currently visible inside a scrollable chart.
Parameters
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
Returns
ChartGuru.ChartBuilder
ChartXVisibleDomain(float)
Section titled “ChartXVisibleDomain(float)”public ChartBuilder ChartXVisibleDomain(float length)Sets the horizontal data interval currently visible inside a scrollable chart.
Parameters
| Name | Type |
|---|---|
length |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartYVisibleDomain(ClosedRange)
Section titled “ChartYVisibleDomain(ClosedRange)”public ChartBuilder ChartYVisibleDomain(ClosedRange<float> domain)Sets the vertical data interval currently visible inside a scrollable chart.
Parameters
| Name | Type |
|---|---|
domain |
ChartGuru.ClosedRange{System.Single} |
Returns
ChartGuru.ChartBuilder
ChartYVisibleDomain(float)
Section titled “ChartYVisibleDomain(float)”public ChartBuilder ChartYVisibleDomain(float length)Sets the vertical data interval currently visible inside a scrollable chart.
Parameters
| Name | Type |
|---|---|
length |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartScrollPositionX(float)
Section titled “ChartScrollPositionX(float)”public ChartBuilder ChartScrollPositionX(float value)Sets the initial horizontal domain value shown at the leading edge of a scrollable chart.
Parameters
| Name | Type |
|---|---|
value |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartScrollPositionY(float)
Section titled “ChartScrollPositionY(float)”public ChartBuilder ChartScrollPositionY(float value)Sets the initial vertical domain value shown at the leading edge of a scrollable chart.
Parameters
| Name | Type |
|---|---|
value |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartScrollPosition(float?, float?)
Section titled “ChartScrollPosition(float?, float?)”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
| Name | Type |
|---|---|
initialX |
System.Nullable{System.Single} |
initialY |
System.Nullable{System.Single} |
Returns
ChartGuru.ChartBuilder
Stacked()
Section titled “Stacked()”public ChartBuilder Stacked()Sets the interpolation method for line and area marks. Swift Charts equivalent: .InterpolationMethod(.catmullRom)
Returns
ChartGuru.ChartBuilder
Normalized()
Section titled “Normalized()”public ChartBuilder Normalized()Shortcut for Stacking(MarkStackingMethod.Normalized).
Returns
ChartGuru.ChartBuilder
Centered()
Section titled “Centered()”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
| Name | Type |
|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} |
xSelector |
System.Func{{T},System.Single} |
ySelector |
System.Func{{T},System.Single} |
type |
ChartGuru.RegressionType |
color |
System.Nullable{UnityEngine.Color} |
lineWidth |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartLegend(LegendPosition)
Section titled “ChartLegend(LegendPosition)”public ChartBuilder ChartLegend(LegendPosition position)Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.
Parameters
| Name | Type |
|---|---|
position |
ChartGuru.LegendPosition |
Returns
ChartGuru.ChartBuilder
ChartLegend(LegendPosition, float)
Section titled “ChartLegend(LegendPosition, float)”public ChartBuilder ChartLegend(LegendPosition position, float size)Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.
Parameters
| Name | Type |
|---|---|
position |
ChartGuru.LegendPosition |
size |
System.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
| Name | Type |
|---|---|
position |
ChartGuru.LegendPosition |
alignment |
ChartGuru.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
| Name | Type |
|---|---|
position |
ChartGuru.LegendPosition |
alignment |
ChartGuru.LegendAlignment |
size |
System.Single |
Returns
ChartGuru.ChartBuilder
ChartLegend(LegendVisibility)
Section titled “ChartLegend(LegendVisibility)”public ChartBuilder ChartLegend(LegendVisibility visibility)Configures legend visibility, position, alignment, or sizing for the chart produced by this builder.
Parameters
| Name | Type |
|---|---|
visibility |
ChartGuru.LegendVisibility |
Returns
ChartGuru.ChartBuilder
HideLegend()
Section titled “HideLegend()”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
| Name | Type |
|---|---|
itemRenderer |
System.Action{ChartGuru.LegendItemBuilder,ChartGuru.LegendSeriesInfo} |
Returns
ChartGuru.ChartBuilder
ShowDataLabels(bool)
Section titled “ShowDataLabels(bool)”public ChartBuilder ShowDataLabels(bool show = true)Controls whether supported marks render their formatted values as data labels.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.ChartBuilder
ChartDataLabels(bool)
Section titled “ChartDataLabels(bool)”public ChartBuilder ChartDataLabels(bool visible = true)Controls whether supported marks render their formatted values as data labels.
Parameters
| Name | Type |
|---|---|
visible |
System.Boolean |
Returns
ChartGuru.ChartBuilder
HideDataLabels()
Section titled “HideDataLabels()”public ChartBuilder HideDataLabels()Suppresses formatted value labels on all generated marks.
Returns
ChartGuru.ChartBuilder
DataLabelFormat(string)
Section titled “DataLabelFormat(string)”public ChartBuilder DataLabelFormat(string format)Sets the numeric format string used for generated data labels.
Parameters
| Name | Type |
|---|---|
format |
System.String |
Returns
ChartGuru.ChartBuilder
ShowAxisTitles(bool)
Section titled “ShowAxisTitles(bool)”public ChartBuilder ShowAxisTitles(bool show = true)Explicitly controls whether configured horizontal and vertical axis titles are rendered.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.ChartBuilder
HideAxisTitles()
Section titled “HideAxisTitles()”public ChartBuilder HideAxisTitles()Suppresses configured titles on both chart axes.
Returns
ChartGuru.ChartBuilder
Constructors
Section titled “Constructors”
ChartBuilder()
Section titled “ChartBuilder()”public ChartBuilder()Creates an empty chart builder with Chart Guru’s production defaults.
Operators
Section titled “Operators”
implicit operator Chart(ChartBuilder)
Section titled “implicit operator Chart(ChartBuilder)”public static implicit operator Chart(ChartBuilder builder)Builds a chart implicitly from the fluent builder, applying the same default resolution as ChartGuru.ChartBuilder.Build.
Parameters
| Name | Type |
|---|---|
builder |
ChartGuru.ChartBuilder |
Returns
ChartGuru.Chart
Properties
Section titled “Properties”
LastTrendLineRSquared
Section titled “LastTrendLineRSquared”public float LastTrendLineRSquared { get; }R² of the most recent ChartGuru.ChartBuilder.AddTrendLinePlot%60%601(System.Collections.Generic.IEnumerable%7b%60%600%7d%2cSystem.Func%7b%60%600%2cSystem.Single%7d%2cSystem.Func%7b%60%600%2cSystem.Single%7d%2cChartGuru.RegressionType%2cSystem.Int32%2cSystem.Int32%2cSystem.Nullable%7bUnityEngine.Color%7d%2cSystem.Single%2cSystem.Single%5b%5d%2cSystem.String) call. Defaults to NaN.
Returns
System.Single
SelectedXValue
Section titled “SelectedXValue”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}
SelectedYValue
Section titled “SelectedYValue”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}
SelectedAngleValue
Section titled “SelectedAngleValue”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}
SelectedXRange
Section titled “SelectedXRange”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}}
SelectedYRange
Section titled “SelectedYRange”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}}
Events
Section titled “Events”
OnXSelectionChanged
Section titled “OnXSelectionChanged”public event Action<float?> OnXSelectionChangedEvent fired when X selection value changes.
Returns
System.Action{System.Nullable{System.Single}}
OnYSelectionChanged
Section titled “OnYSelectionChanged”public event Action<float?> OnYSelectionChangedEvent fired when Y selection value changes.
Returns
System.Action{System.Nullable{System.Single}}
OnAngleSelectionChanged
Section titled “OnAngleSelectionChanged”public event Action<float?> OnAngleSelectionChangedEvent fired when angle selection value changes (for pie/donut charts).
Returns
System.Action{System.Nullable{System.Single}}
OnXRangeSelectionChanged
Section titled “OnXRangeSelectionChanged”public event Action<ClosedRange<float>?> OnXRangeSelectionChangedEvent fired when X selection range changes.
Returns
System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}
OnYRangeSelectionChanged
Section titled “OnYRangeSelectionChanged”public event Action<ClosedRange<float>?> OnYRangeSelectionChangedEvent fired when Y selection range changes.
Returns
System.Action{System.Nullable{ChartGuru.ClosedRange{System.Single}}}