ArcMark<T> Class

Draws a slice per row: a pie or a donut (with PolarCoordinates.InnerRadius), whose slices have angles proportional to the values. With ArcMark<T>.Radius, the slices have equal angles and radii from the values: a polar area (rose) chart. The plot uses polar coordinates, unless it sets other coordinates.

public sealed class ArcMark<T> : Mark<T>

Type parameters

T
The type of the rows.

Remarks

Without a Mark<T>.Fill channel, each slice gets the next color of the palette.

On the x scale, the slices go from 0 to 1: a slice of a quarter of the total goes from 0 to 0.25, so every pie is a full circle, even when facets share the scale. Draw a marker at 0.72 to point at 72% of a gauge.

Inheritance
Mark<T> ArcMark<T>

Constructors

NameDescription
ArcMark(IEnumerable<T>, Func<T, object?>)Initializes a new instance of the ArcMark<T> class.

ArcMark(IEnumerable<T>, Func<T, object?>)

ArcMark.cs

Initializes a new instance of the ArcMark<T> class.

public ArcMark(IEnumerable<T> data, Func<T, object?> value)

Parameters

data IEnumerable<T>
The rows.
value Func<T, object?>
The channel of the value of the slice. Negative values count as zero.

Properties

NameDescription
LabelGets or sets the channel of a label drawn in the slice when it fits.
RadiusGets or sets the channel of the radius of the slice (a rose chart), or null for slices of the full radius.
ValueGets the channel of the value of the slice.

Gets or sets the channel of a label drawn in the slice when it fits.

public Func<T, string?>? Label { get; set; }

Property value

Func<T, string?>?

Gets or sets the channel of the radius of the slice (a rose chart), or null for slices of the full radius.

public Func<T, object?>? Radius { get; set; }

Property value

Func<T, object?>?

Gets the channel of the value of the slice.

public Func<T, object?> Value { get; }

Property value

Func<T, object?>