Skip to content

FunctionScaleTransformer

ClassChartGuruChartGuru
public sealed class FunctionScaleTransformer : IScaleTransformer

Convenience: build an ChartGuru.IScaleTransformer from delegates.

FunctionScaleTransformer(Func<float, float>, Func<float, float>, Func<float, float, int, float[]>)

Section titled “FunctionScaleTransformer(Func<float, float>, Func<float, float>, Func<float, float, int, float[]>)”
public FunctionScaleTransformer(Func<float, float> forward, Func<float, float> inverse, Func<float, float, int, float[]> ticks = null)

No description is available for this member.

Parameters

Name Type Description
forward System.Func{System.Single,System.Single}
inverse System.Func{System.Single,System.Single}
ticks System.Func{System.Single,System.Single,System.Int32,System.Single[]}

public float Forward(float value)

Map a raw data value into transformed (axis-coordinate) space.

Parameters

Name Type Description
value System.Single

Returns

System.Single — No return description is available.

public float Inverse(float transformed)

Inverse of ChartGuru.IScaleTransformer.Forward(System.Single).

Parameters

Name Type Description
transformed System.Single

Returns

System.Single — No return description is available.

public float[] SuggestTicks(float rawMin, float rawMax, int desiredCount)

Optional tick suggestion for non-uniform scales. May return null to fall back to the built-in linear tick generator (which the engine will run against the transformed domain). When non-null, the values are interpreted in raw data space.

Parameters

Name Type Description
rawMin System.Single
rawMax System.Single
desiredCount System.Int32

Returns

System.Single[] — No return description is available.