MAIDR JavaScript API
    Preparing search index...
    • Builds the layer for one heatmap series.

      ECharts numbers a cell by axis index, not by name, and a category y axis runs bottom-up -- measured, a 2x2 grid reports its four cells as [0,0], [0,1], [1,0], [1,1] with y = 0 at the bottom. HeatmapData.y and points are top-first, so the rows are turned over on the way out.

      A cell the chart drew nothing at stays null rather than becoming a zero: a grid is a rectangle and the data need not fill it (#1191).

      Parameters

      • seriesModel: EChartsSeriesModel

        The series to read

      • axes: AxisCategories

        The category names of both axes

      • names: AxisNames

        The axis titles

      • selectorFor: string[] | undefined

        One selector per drawn cell, in data order

      Returns MaidrLayer | undefined

      The layer, or undefined when the grid has no named axes to sit on