Skip to content

LinearScale

ClassChartGuruChartGuru
public class LinearScale : Scale

Linear scale with uniform mapping.

public LinearScale(float domainMin = 0, float domainMax = 1, float rangeMin = 0, float rangeMax = 1)

No description is available for this member.

Parameters

Name Type Description
domainMin System.Single
domainMax System.Single
rangeMin System.Single
rangeMax System.Single

public override float Map(float value)

No description is available for this member.

Parameters

Name Type Description
value System.Single

Returns

System.Single — No return description is available.

public override float Invert(float position)

No description is available for this member.

Parameters

Name Type Description
position System.Single

Returns

System.Single — No return description is available.

public override float[] GenerateTicks(int count)

No description is available for this member.

Parameters

Name Type Description
count System.Int32

Returns

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

public LinearScale Nice(int tickCount = 10)

Compute “nice” round numbers for domain bounds.

Parameters

Name Type Description
tickCount System.Int32

Returns

ChartGuru.LinearScale — No return description is available.