FunctionScaleTransformer
public sealed class FunctionScaleTransformer : IScaleTransformerConvenience: build an ChartGuru.IScaleTransformer from delegates.
Constructors
Section titled “Constructors”
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[]} |
Methods
Section titled “Methods”
Forward(float)
Section titled “Forward(float)”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.
Inverse(float)
Section titled “Inverse(float)”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.
SuggestTicks(float, float, int)
Section titled “SuggestTicks(float, float, int)”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.