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
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the DotMark<T> class.
public DotMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> y)Parameters
dataIEnumerable<T>- The rows.
xFunc<T, object?>- The channel of the x position.
yFunc<T, object?>- The channel of the y position.
Properties
| Name | Description |
|---|---|
| FillOpacity | Gets or sets the opacity of the fill, from 0 to 1. The default is 1. |
| Radius | Gets or sets the radius of the dots when DotMark<T>.Size is not set. The default is 3.5. |
| Size | Gets or sets the channel of the size, mapped by the size scale so the area of the dot is proportional to the value. |
| Symbol | Gets or sets the shape of the dots. The default is DotSymbol.Circle. |
| X | Gets the channel of the x position. |
| Y | Gets the channel of the y position. |
FillOpacity
DotMark.csRadius
DotMark.csGets 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
Size
DotMark.csGets or sets the channel of the size, mapped by the size scale so the area of the dot is proportional to the value.
Property value
Symbol
DotMark.csGets or sets the shape of the dots. The default is DotSymbol.Circle.
public DotSymbol Symbol { get; set; }