TrendLinePlot
[Serializable]public class TrendLinePlot : ChartMark, IChartMark, IChartContentFirst-class trend line mark that wraps ChartGuru.TrendLineUtils regression
calculations into a renderable chart mark implementing ChartGuru.IChartContent.
Swift Charts equivalent: LinearRegressionPlot(x:y:) (ChartGuru extends beyond
linear to polynomial, exponential, logarithmic, and power regressions).
Properties
Section titled “Properties”
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }No description is available for this member.
Returns
ChartGuru.ChartType — No return description is available.
IChartContent_DataPoint
Section titled “IChartContent_DataPoint”public DataPoint IChartContent_DataPoint { get; }No description is available for this member.
Returns
ChartGuru.DataPoint — No return description is available.
RegressionKind
Section titled “RegressionKind”public RegressionType RegressionKind { get; }No description is available for this member.
Returns
ChartGuru.RegressionType — No return description is available.
RSquared
Section titled “RSquared”public float RSquared { get; }No description is available for this member.
Returns
System.Single — No return description is available.
EquationText
Section titled “EquationText”public string EquationText { get; }No description is available for this member.
Returns
System.String — No return description is available.
ShowsEquation
Section titled “ShowsEquation”public bool ShowsEquation { get; set; }No description is available for this member.
Returns
System.Boolean — No return description is available.
ShowsRSquared
Section titled “ShowsRSquared”public bool ShowsRSquared { get; set; }No description is available for this member.
Returns
System.Boolean — No return description is available.
Constructors
Section titled “Constructors”
TrendLinePlot(Vector2[], RegressionType)
Section titled “TrendLinePlot(Vector2[], RegressionType)”public TrendLinePlot(Vector2[] sourcePoints, RegressionType type = RegressionType.Linear)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
sourcePoints |
UnityEngine.Vector2[] | |
type |
ChartGuru.RegressionType | |
TrendLinePlot(float[], float[], RegressionType)
Section titled “TrendLinePlot(float[], float[], RegressionType)”public TrendLinePlot(float[] xValues, float[] yValues, RegressionType type = RegressionType.Linear)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
xValues |
System.Single[] | |
yValues |
System.Single[] | |
type |
ChartGuru.RegressionType |
Methods
Section titled “Methods”
FromData(IEnumerable, Func<T, float>, Func<T, float>, RegressionType)
Section titled “FromData(IEnumerable, Func<T, float>, Func<T, float>, RegressionType)”public static TrendLinePlot FromData<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector, RegressionType type = RegressionType.Linear)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
data |
System.Collections.Generic.IEnumerable{{T}} | |
xSelector |
System.Func{{T},System.Single} | |
ySelector |
System.Func{{T},System.Single} | |
type |
ChartGuru.RegressionType |
Returns
ChartGuru.TrendLinePlot — No return description is available.
GetMarks()
Section titled “GetMarks()”public IEnumerable<IChartMark> GetMarks()Expands this composite content into individual chart marks for rendering.
Returns
System.Collections.Generic.IEnumerable{ChartGuru.IChartMark} — Enumerable of primitive chart marks.
RegressionType(RegressionType)
Section titled “RegressionType(RegressionType)”public TrendLinePlot RegressionType(RegressionType type)Regression types supported for trend line calculations.
Parameters
| Name | Type | Description |
|---|---|---|
type |
ChartGuru.RegressionType |
Returns
ChartGuru.TrendLinePlot — No return description is available.
PolynomialDegree(int)
Section titled “PolynomialDegree(int)”public TrendLinePlot PolynomialDegree(int degree)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
degree |
System.Int32 |
Returns
ChartGuru.TrendLinePlot — No return description is available.
Samples(int)
Section titled “Samples(int)”public TrendLinePlot Samples(int count)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
count |
System.Int32 |
Returns
ChartGuru.TrendLinePlot — No return description is available.
Domain(float, float)
Section titled “Domain(float, float)”public TrendLinePlot Domain(float min, float max)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
min |
System.Single | |
max |
System.Single |
Returns
ChartGuru.TrendLinePlot — No return description is available.
LineStyle(float)
Section titled “LineStyle(float)”public TrendLinePlot LineStyle(float width)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
width |
System.Single |
Returns
ChartGuru.TrendLinePlot — No return description is available.
LineStyle(StrokeStyle)
Section titled “LineStyle(StrokeStyle)”public TrendLinePlot LineStyle(StrokeStyle style)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
style |
ChartGuru.StrokeStyle |
Returns
ChartGuru.TrendLinePlot — No return description is available.
ForegroundStyle(Color)
Section titled “ForegroundStyle(Color)”public TrendLinePlot ForegroundStyle(Color color)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
color |
UnityEngine.Color |
Returns
ChartGuru.TrendLinePlot — No return description is available.
ShowEquation(bool)
Section titled “ShowEquation(bool)”public TrendLinePlot ShowEquation(bool show = true)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
show |
System.Boolean |
Returns
ChartGuru.TrendLinePlot — No return description is available.
ShowRSquared(bool)
Section titled “ShowRSquared(bool)”public TrendLinePlot ShowRSquared(bool show = true)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
show |
System.Boolean |
Returns
ChartGuru.TrendLinePlot — No return description is available.
GetMorphTargets(ChartType, Rect)
Section titled “GetMorphTargets(ChartType, Rect)”public override (Vector2 source, Vector2 target) GetMorphTargets(ChartType targetType, Rect plotArea)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
targetType |
ChartGuru.ChartType | |
plotArea |
UnityEngine.Rect |
Returns
System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2} — No return description is available.
Clone()
Section titled “Clone()”public override IChartMark Clone()No description is available for this member.
Returns
ChartGuru.IChartMark — No return description is available.