DotMark<T> Class

Draws a dot per row at its x and y positions: a scatter plot, or a bubble chart with the DotMark<T>.Size channel.

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

Type parameters

T
The type of the rows.
Inheritance
Mark<T> DotMark<T>

Constructors

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

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

DotMark.cs

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

public DotMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> y)

Parameters

data IEnumerable<T>
The rows.
x Func<T, object?>
The channel of the x position.
y Func<T, object?>
The channel of the y position.

Properties

NameDescription
FillOpacityGets or sets the opacity of the fill, from 0 to 1. The default is 1.
RadiusGets or sets the radius of the dots when DotMark<T>.Size is not set. The default is 3.5.
SizeGets or sets the channel of the size, mapped by the size scale so the area of the dot is proportional to the value.
SymbolGets or sets the shape of the dots. The default is DotSymbol.Circle.
XGets the channel of the x position.
YGets the channel of the y position.

FillOpacity

DotMark.cs

Gets or sets the opacity of the fill, from 0 to 1. The default is 1.

public double FillOpacity { get; set; }

Property value

double

Gets or sets the radius of the dots when DotMark<T>.Size is not set. The default is 3.5.

public double Radius { get; set; }

Property value

double

Gets or sets the channel of the size, mapped by the size scale so the area of the dot is proportional to the value.

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

Property value

Func<T, object?>?

Gets or sets the shape of the dots. The default is DotSymbol.Circle.

public DotSymbol Symbol { get; set; }

Property value

DotSymbol

Gets the channel of the x position.

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

Property value

Func<T, object?>

Gets the channel of the y position.

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

Property value

Func<T, object?>