LinePlot<T>
public class LinePlot<T> : ChartMark, IChartMarkVectorized line plot for rendering lines from collection data. Swift Charts equivalent: LinePlot(data, x:, y:)
Constructors
Section titled “Constructors”
LinePlot(IEnumerable, Func<T, float>, Func<T, float>)
Section titled “LinePlot(IEnumerable, Func<T, float>, Func<T, float>)”public LinePlot(IEnumerable<T> data, Func<T, float> x, Func<T, float> y)Creates a LinePlot from collection data with x/y selectors. 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} |
Methods
Section titled “Methods”
GetMarks()
Section titled “GetMarks()”public IEnumerable<LineMark> GetMarks()Generates individual LineMarks from the data.
Returns
System.Collections.Generic.IEnumerable{ChartGuru.LineMark}
InterpolationMethod(InterpolationMethod)
Section titled “InterpolationMethod(InterpolationMethod)”public LinePlot<T> 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.LinePlot`1
LineStyle(float)
Section titled “LineStyle(float)”public LinePlot<T> LineStyle(float width)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
Returns
ChartGuru.LinePlot`1
LineStyle(StrokeStyle)
Section titled “LineStyle(StrokeStyle)”public LinePlot<T> 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.LinePlot`1
LineStyle(Func<T, float>)
Section titled “LineStyle(Func<T, float>)”public LinePlot<T> LineStyle(Func<T, float> selector)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
selector |
System.Func{{T},System.Single} |
Returns
ChartGuru.LinePlot`1
LineStyle(Func<T, StrokeStyle>)
Section titled “LineStyle(Func<T, StrokeStyle>)”public LinePlot<T> LineStyle(Func<T, StrokeStyle> selector)Configures line width and dash behavior; selector overloads resolve the stroke separately for each datum.
Parameters
| Name | Type |
|---|---|
selector |
System.Func{{T},ChartGuru.StrokeStyle} |
Returns
ChartGuru.LinePlot`1
Symbol(SymbolShape, float)
Section titled “Symbol(SymbolShape, float)”public LinePlot<T> Symbol(SymbolShape shape, float size = 4)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.LinePlot`1
Symbol(SymbolStyle, float)
Section titled “Symbol(SymbolStyle, float)”public LinePlot<T> Symbol(SymbolStyle style, float size = 4)Sets the point symbol; selector overloads resolve a separate shape for each source datum.
Parameters
| Name | Type |
|---|---|
style |
ChartGuru.SymbolStyle |
size |
System.Single |
Returns
ChartGuru.LinePlot`1
Symbol(Func<T, SymbolShape>)
Section titled “Symbol(Func<T, SymbolShape>)”public LinePlot<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.LinePlot`1
SymbolSize(float)
Section titled “SymbolSize(float)”public LinePlot<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.LinePlot`1
SymbolSize(Func<T, float>)
Section titled “SymbolSize(Func<T, float>)”public LinePlot<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.LinePlot`1
ForegroundStyle(Color)
Section titled “ForegroundStyle(Color)”public LinePlot<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.LinePlot`1
ForegroundStyle(Func<T, object>)
Section titled “ForegroundStyle(Func<T, object>)”public LinePlot<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.LinePlot`1
ForegroundStyle(Func<T, Color>)
Section titled “ForegroundStyle(Func<T, Color>)”public LinePlot<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.LinePlot`1
AccessibilityLabel(Func<T, string>)
Section titled “AccessibilityLabel(Func<T, string>)”public LinePlot<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.LinePlot`1
AccessibilityValue(Func<T, string>)
Section titled “AccessibilityValue(Func<T, string>)”public LinePlot<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.LinePlot`1
Opacity(float)
Section titled “Opacity(float)”public LinePlot<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.LinePlot`1
Opacity(Func<T, float>)
Section titled “Opacity(Func<T, float>)”public LinePlot<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.LinePlot`1
Position(Func<T, object>, MarkAxis)
Section titled “Position(Func<T, object>, MarkAxis)”public LinePlot<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.LinePlot`1
Position(Func<T, object>, MarkAxis, MarkDimension)
Section titled “Position(Func<T, object>, MarkAxis, MarkDimension)”public LinePlot<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.LinePlot`1
Position(PlottableProjection<T, TValue>, MarkAxis)
Section titled “Position(PlottableProjection<T, TValue>, MarkAxis)”public LinePlot<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.LinePlot`1
Position(PlottableProjection<T, TValue>, MarkAxis, MarkDimension)
Section titled “Position(PlottableProjection<T, TValue>, MarkAxis, MarkDimension)”public LinePlot<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.LinePlot`1
GetMorphTargets(ChartType, Rect)
Section titled “GetMorphTargets(ChartType, Rect)”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}
Clone()
Section titled “Clone()”public override IChartMark Clone()Creates an independent copy of this Line Plot; later configuration changes do not affect the original instance.
Returns
ChartGuru.IChartMark
Properties
Section titled “Properties”
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }Returns
ChartGuru.ChartType
public IEnumerable<T> Data { get; }Returns
System.Collections.Generic.IEnumerable{{T}}