Skip to main content

Module hexbin

Module hexbin 

Source
Expand description

Hexbin chart builder methods.

Provides a fluent builder API for configuring HexbinArtist instances and the hexagonal binning algorithm. Each builder method returns &mut Self, allowing calls to be chained for concise, readable chart construction.

Structs§

HexBinResult
Result of binning data points into hexagonal cells.
HexCell
A hex cell key for the flat-top hexagonal grid.

Functions§

bin_hexagonal
Bins (x, y) data points into a flat-top hexagonal grid.
hex_size_for_gridsize
Returns the hex circumradius for a given gridsize and x-extent.
hexagon_vertices
Computes the 6 vertices of a flat-top regular hexagon centered at (cx, cy) with the given circumradius size.