MAIDR JavaScript API
    Preparing search index...
    • Each category's label levels, outer first, from the range's displayed text.

      A range of several label levels -- years beside quarters, regions beside countries -- shows an outer label only where its group starts, so a blank outer cell is the label above it carried down: 2024 over Q1, then a blank over Q2, is 2024, Q2. A blank is carried only into a category that names something deeper, and only while the levels outside it are the row above's -- a blank after a new outer label starts no branch of the old one -- and a blank with nothing deeper is no level at all.

      Parameters

      • text: readonly (readonly string[])[]

        The range's text, [row][column].

      • layout: "rows" | "columns"

        Whether each category is a row or a column.

      Returns string[][]

      One list of levels per category, '' where a level is blank.