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.
Generates a 2D grid of per-cell CSS selectors for a Highcharts heatmap series.
MAIDR's
HeatmapTrace(when given astring[][]) treatsselectors[r][c]as the selector for the cell at logical rowr, columnc. The model reverses incoming rows on construction (so row 0 = bottom of the visual grid), and we account for that here by emittingdata-maidr-row="${rows-1-r}"— the visual top-down row index that the adapter stamps onto each cell.Highcharts emits heatmap cells in
series.dataorder, 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 (seestampHeatmapIndicesin adapter.ts) makes the selector→cell mapping unambiguous regardless of insertion order.