HexbinMark<T> Class
Draws a hexbin plot: the plot area is tiled with hexagons, and each hexagon that has points is colored by the number of its points with the color scale (a sequential scale by default). It shows the density of a scatter plot with too many points to draw each one.
public sealed class HexbinMark<T> : Mark<T>Type parameters
T- The type of the rows.
Remarks
The hexagons are regular in pixels, so the points are binned once the scales are laid out: the domain of the color scale includes the counts, unless the scale sets its minimum and its maximum. The Mark<T>.Fill channel is not used.
- Inheritance
Mark<T>HexbinMark<T>
Constructors
| Name | Description |
|---|---|
| HexbinMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>) | Initializes a new instance of the HexbinMark<T> class. |
HexbinMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>)
HexbinMark.csInitializes a new instance of the HexbinMark<T> class.
public HexbinMark(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 |
|---|---|
| Radius | Gets or sets the radius of the hexagons, from their center to a corner, in pixels. The default is 10. |
| X | Gets the channel of the x position. |
| Y | Gets the channel of the y position. |
Radius
HexbinMark.csGets or sets the radius of the hexagons, from their center to a corner, in pixels. The default is 10.
public double Radius { get; set; }