Skip to content

PointPlot<T>

ClassChartGuruChartGuru
public class PointPlot<T> : ChartMark, IChartMark

Vectorized point plot for rendering points from collection data. Swift Charts equivalent: PointPlot(data, x:, y:)

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

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

Creates a PointPlot from collection data with x/y selectors. 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}

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

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

Creates a PointPlot with category labels.

Parameters

Name Type
data System.Collections.Generic.IEnumerable{{T}}
category System.Func{{T},System.String}
y System.Func{{T},System.Single}

public IEnumerable<PointMark> GetMarks()

Generates individual PointMarks from the data.

Returns

System.Collections.Generic.IEnumerable{ChartGuru.PointMark}

public PointPlot<T> 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.PointPlot`1

public PointPlot<T> Symbol(Func<T, SymbolShape> selector)

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

Parameters

Name Type
selector System.Func{{T},ChartGuru.SymbolShape}

Returns

ChartGuru.PointPlot`1

public PointPlot<T> 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.PointPlot`1

public PointPlot<T> SymbolSize(Func<T, float> selector)

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

Parameters

Name Type
selector System.Func{{T},System.Single}

Returns

ChartGuru.PointPlot`1

public PointPlot<T> 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.PointPlot`1

public PointPlot<T> ForegroundStyle(Func<T, object> seriesSelector)

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

Parameters

Name Type
seriesSelector System.Func{{T},System.Object}

Returns

ChartGuru.PointPlot`1

public PointPlot<T> ForegroundStyle(Func<T, Color> colorSelector)

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

Parameters

Name Type
colorSelector System.Func{{T},UnityEngine.Color}

Returns

ChartGuru.PointPlot`1

public PointPlot<T> AccessibilityLabel(Func<T, string> selector)

Provides the spoken label for each generated mark when assistive chart navigation is used.

Parameters

Name Type
selector System.Func{{T},System.String}

Returns

ChartGuru.PointPlot`1

public PointPlot<T> AccessibilityValue(Func<T, string> selector)

Provides the spoken value for each generated mark when assistive chart navigation is used.

Parameters

Name Type
selector System.Func{{T},System.String}

Returns

ChartGuru.PointPlot`1

public PointPlot<T> 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.PointPlot`1

public PointPlot<T> Opacity(Func<T, float> selector)

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

Parameters

Name Type
selector System.Func{{T},System.Single}

Returns

ChartGuru.PointPlot`1

public PointPlot<T> Position(Func<T, object> selector, MarkAxis axis = MarkAxis.Automatic)

Binds projected values to a chart axis and dimension, controlling where each generated mark is laid out.

Parameters

Name Type
selector System.Func{{T},System.Object}
axis ChartGuru.MarkAxis

Returns

ChartGuru.PointPlot`1

Position(Func<T, object>, MarkAxis, MarkDimension)

Section titled “Position(Func<T, object>, MarkAxis, MarkDimension)”
public PointPlot<T> Position(Func<T, object> selector, MarkAxis axis, MarkDimension span)

Binds projected values to a chart axis and dimension, controlling where each generated mark is laid out.

Parameters

Name Type
selector System.Func{{T},System.Object}
axis ChartGuru.MarkAxis
span ChartGuru.MarkDimension

Returns

ChartGuru.PointPlot`1

Position(PlottableProjection<T, TValue>, MarkAxis)

Section titled “Position(PlottableProjection<T, TValue>, MarkAxis)”
public PointPlot<T> Position<TValue>(PlottableProjection<T, TValue> projection, MarkAxis axis = MarkAxis.Automatic)

Binds projected values to a chart axis and dimension, controlling where each generated mark is laid out.

Parameters

Name Type
projection ChartGuru.PlottableProjection{{T},{TValue}}
axis ChartGuru.MarkAxis

Returns

ChartGuru.PointPlot`1

Position(PlottableProjection<T, TValue>, MarkAxis, MarkDimension)

Section titled “Position(PlottableProjection<T, TValue>, MarkAxis, MarkDimension)”
public PointPlot<T> Position<TValue>(PlottableProjection<T, TValue> projection, MarkAxis axis, MarkDimension span)

Binds projected values to a chart axis and dimension, controlling where each generated mark is laid out.

Parameters

Name Type
projection ChartGuru.PlottableProjection{{T},{TValue}}
axis ChartGuru.MarkAxis
span ChartGuru.MarkDimension

Returns

ChartGuru.PointPlot`1

public override (Vector2 source, Vector2 target) GetMorphTargets(ChartType targetType, Rect plotArea)

Projects this mark into plot-space geometry that the morph renderer can interpolate toward the requested chart type.

Parameters

Name Type
targetType ChartGuru.ChartType
plotArea UnityEngine.Rect

Returns

System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2}

public override IChartMark Clone()

Creates an independent copy of this Point Plot; later configuration changes do not affect the original instance.

Returns

ChartGuru.IChartMark

public override ChartType MarkType { get; }

Returns

ChartGuru.ChartType

public IEnumerable<T> Data { get; }

Returns

System.Collections.Generic.IEnumerable{{T}}