MAIDR Documentation - v4.4.0
    Preparing search index...

    Interface HexbinLatticeConfig

    Configuration for hexbin density plots. Optional when chartType is 'hexbin'.

    Recharts has no hexbin either: the marks are a <Scatter> given a hexagonal shape, and the binning happens before the chart is drawn. So data is one row per OCCUPIED bin — an empty bin is not drawn and not announced — and the adapter assembles the lattice those bins form: rows grouped by their y centre, ordered from the lowest upward, each row ordered left to right.

    The centres are in DATA units. Screen coordinates would announce every bin's position in pixels.

    interface HexbinLatticeConfig {
        xKey?: string;
        yKey?: string;
        countKey?: string;
        rowKey?: string;
    }
    Index

    Properties

    xKey?: string

    Key holding the bin's centre along the x axis. Defaults to the chart's xKey.

    yKey?: string

    Key holding the bin's centre along the y axis. Defaults to the first yKeys entry, then a y column.

    countKey?: string

    Key holding how many points fell in the bin.

    Defaults to a count column, then length, value, n, total — the length fallback being what makes a d3-hexbin bin work untouched, since its bins are arrays of the points that fell in them.

    rowKey?: string

    Key holding the lattice row a bin sits on, for data that names it.

    Omitted, rows are grouped by identical y centre, which is what a lattice computed by the usual libraries produces.