Avalonia Code OnlyItaliano

API › RAVAL

RSeries class

public sealed class RSeries

A curve of an RChart.

Constructors

RSeries(string name, double[] x, double[] y, int color = 0)

A curve; the color is the i-th of RColor.Palette.

Properties

string Name { get; }

The name, in the legend ("" keeps it out of the legend).

double[] X { get; }

The abscissas, in any order (increasing for the markers).

double[] Y { get; }

The ordinates (NaN leaves a hole in the curve).

bool Sorted { get; }

Whether the abscissas never decrease: then the markers read the curve.

IBrush Brush { get; set; }

The color.

bool Dashed { get; set; }

Whether it is dashed (a measurement, a limit).

bool RightAxis { get; set; }

Whether it uses the right axis instead of the left one.

double Thickness { get; set; }

The line thickness, pixels.

RSeriesStyle Style { get; set; }

Line, points or both (Line).

double PointSize { get; set; }

The diameter of the points, pixels (5).

Methods

double At(double x)

The ordinate at x, interpolated between the two nearest samples (NaN outside the curve, or if the abscissas are not sorted).

RSeries With(double[] x, double[] y)

A copy with the same name, color and look, and other points.