MAIDR Documentation - v3.69.0
    Preparing search index...
    • Generates a 2D grid of per-cell CSS selectors for a Highcharts heatmap series.

      MAIDR's HeatmapTrace (when given a string[][]) treats selectors[r][c] as the selector for the cell at logical row r, column c. The model reverses incoming rows on construction (so row 0 = bottom of the visual grid), and we account for that here by emitting data-maidr-row="${rows-1-r}" — the visual top-down row index that the adapter stamps onto each cell.

      Highcharts emits heatmap cells in series.data order, which depends on the user's data layout (could be row-major or column-major). DOM-order based mapping is fragile across user configs; per-cell stamping (see stampHeatmapIndices in adapter.ts) makes the selector→cell mapping unambiguous regardless of insertion order.

      Parameters

      • containerId: string
      • seriesIndex: number
      • rows: number
      • cols: number

      Returns string[][]