MAIDR Documentation - v4.4.0
    Preparing search index...
    • Generates per-node CSS selectors for a treemap or sunburst series.

      MAIDR's TreemapTrace indexes its selector list by the order the nodes were declared, but neither series draws in that order: TreemapSeries#drawPoints files each rectangle into a level-group-N container whose zIndex is the negated depth, so the DOM is grouped by depth and the deepest level comes first. Document order therefore says nothing about declaration order, which is why the adapter stamps data-maidr-node-index="N" onto each rendered node (see stampTreeIndices in adapter.ts) and these selectors address the stamp.

      A node Highcharts did not draw — one hidden below the current root, or a point it found no room for — has no element to stamp, so its selector matches nothing and TreemapTrace withdraws the layer's highlighting rather than pairing the remaining nodes with the wrong rectangles.

      Parameters

      • containerId: string
      • seriesIndex: number
      • nodeCount: number

      Returns string[]