Avalonia Code OnlyItaliano

API › RAVAL

RTicks class

public static class RTicks

The divisions of a chart axis.

Methods

static double Step(double a, double b, int n)

The round step (1, 2 or 5 times a power of ten) that gives about n divisions between a and b.

static (double, double) Expand(double a, double b, int n)

The range widened to whole steps on both sides.

static List<double> Linear(double a, double b, int n)

The round divisions between a and b, ends included.

static List<double> Log(double a, double b)

The divisions of a logarithmic axis between a and b (both positive): 1, 2 and 5 of each decade.