Skip to content

AreaPlot

ClassChartGuruChartGuru
[Serializable]
public class AreaPlot : ChartMark, IChartMark

A vectorized area plot that renders a mathematical function as a filled area. Swift Charts equivalent: AreaPlot(x: “x”, y: .linearFunction(…))

public override ChartType MarkType { get; }

No description is available for this member.

Returns

ChartGuru.ChartType — No return description is available.

public Func<float, float> Function { get; set; }

The function to plot: y = f(x)

Returns

System.Func{System.Single,System.Single} — No return description is available.

public Func<float, float> BaselineFunction { get; set; }

Optional baseline function for area between two curves. If null, uses the constant Baseline value.

Returns

System.Func{System.Single,System.Single} — No return description is available.

public float DomainMin { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public float DomainMax { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public int SampleCount { get; set; }

No description is available for this member.

Returns

System.Int32 — No return description is available.

public InterpolationMethod Interpolation { get; set; }

No description is available for this member.

Returns

ChartGuru.InterpolationMethod — No return description is available.

public float BaselineValue { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public bool ShowLine { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public float LineWidth { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public float FillOpacity { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public bool ShowGradient { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

AreaPlot(Func<float, float>, float, float)

Section titled “AreaPlot(Func<float, float>, float, float)”
public AreaPlot(Func<float, float> function, float domainMin = 0, float domainMax = 1)

Creates an AreaPlot with a function and domain.

Parameters

Name Type Description
function System.Func{System.Single,System.Single}
domainMin System.Single
domainMax System.Single

AreaPlot(Func<float, float>, Func<float, float>, float, float)

Section titled “AreaPlot(Func<float, float>, Func<float, float>, float, float)”
public AreaPlot(Func<float, float> upperFunction, Func<float, float> lowerFunction, float domainMin = 0, float domainMax = 1)

Creates an area between two functions.

Parameters

Name Type Description
upperFunction System.Func{System.Single,System.Single}
lowerFunction System.Func{System.Single,System.Single}
domainMin System.Single
domainMax System.Single

LinearFunction(float, float, float, float)

Section titled “LinearFunction(float, float, float, float)”
public static AreaPlot LinearFunction(float intercept, float slope, float domainMin = 0, float domainMax = 1)

Creates a linear function area plot.

Parameters

Name Type Description
intercept System.Single
slope System.Single
domainMin System.Single
domainMax System.Single

Returns

ChartGuru.AreaPlot — No return description is available.

SineWave(float, float, float, float, float)

Section titled “SineWave(float, float, float, float, float)”
public static AreaPlot SineWave(float amplitude = 1, float frequency = 1, float phase = 0, float domainMin = 0, float domainMax = 6.28)

Creates a sine wave area plot.

Parameters

Name Type Description
amplitude System.Single
frequency System.Single
phase System.Single
domainMin System.Single
domainMax System.Single

Returns

ChartGuru.AreaPlot — No return description is available.

public IEnumerable<AreaMark> GetSampledMarks()

Samples the function and generates AreaMark data points.

Returns

System.Collections.Generic.IEnumerable{ChartGuru.AreaMark} — No return description is available.

public AreaPlot Domain(float min, float max)

No description is available for this member.

Parameters

Name Type Description
min System.Single
max System.Single

Returns

ChartGuru.AreaPlot — No return description is available.

public AreaPlot Samples(int count)

No description is available for this member.

Parameters

Name Type Description
count System.Int32

Returns

ChartGuru.AreaPlot — No return description is available.

public AreaPlot InterpolationMethod(InterpolationMethod method)

No description is available for this member.

Parameters

Name Type Description
method ChartGuru.InterpolationMethod

Returns

ChartGuru.AreaPlot — No return description is available.

public AreaPlot Baseline(float value)

No description is available for this member.

Parameters

Name Type Description
value System.Single

Returns

ChartGuru.AreaPlot — No return description is available.

public AreaPlot Baseline(Func<float, float> function)

No description is available for this member.

Parameters

Name Type Description
function System.Func{System.Single,System.Single}

Returns

ChartGuru.AreaPlot — No return description is available.

public AreaPlot Opacity(float value)

No description is available for this member.

Parameters

Name Type Description
value System.Single

Returns

ChartGuru.AreaPlot — No return description is available.

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.

public override IChartMark Clone()

No description is available for this member.

Returns

ChartGuru.IChartMark — No return description is available.