MAIDR Documentation - v4.4.0
    Preparing search index...
    • Generates per-bin CSS selectors for a tilemap series read as a hexbin.

      MAIDR's HexbinTrace slices its selector list row by row, so the list has to run in lattice order — rows along the y axis, bins along x within each — while Highcharts draws the tiles in series.data order, which a tilemap is routinely authored in some other order entirely (a honeycomb map is declared country by country). The adapter therefore stamps data-maidr-bin-index="N" onto each rendered tile in lattice order (see stampHexbinIndices in adapter.ts) and these selectors address the stamp.

      A tile Highcharts did not draw has no element to stamp, so its selector matches nothing and HexbinTrace withdraws the layer's highlighting rather than pairing bins with their neighbours' tiles — which on a staggered lattice is not even a neighbour in the direction a reader would guess.

      Parameters

      • containerId: string
      • seriesIndex: number
      • binCount: number

      Returns string[]