Heatmap

Hour by weekday on a five-step ramp from fill to series 1; never a rainbow.

View source
Requests by hour and weekday
Row000102030405060708091011121314151617181920212223
Mon00000004164150136243247308328390264309296298347264279264
Tue00000004476107138194195292324223313388295334405252257295
Wed00000005378105216197184274233392317287333335337249347257
Thu00000004270148199184198261289371423362252244344226288335
Fri00000005383116214232267276309225342358308393258372275196
Sat00000001019296477891046711610912312972109848176
Sun000000015283459766410169728881130118971139197
import { Heatmap } from "@logicplanes/kaeso-ui";

Props

  • aria-label
    string

    The chart's accessible name ("Requests by model").

  • columnLabelEvery
    number = 3

    Labels every nth column, starting with the first (3 by default), so dense columns stay readable.

  • columns
    string[]

    The column labels, left to right (hours, or weeks).

  • formatValue
    ((v: number) => string)

    Formats a cell's value for its tooltip, the table and screen readers. Defaults to formatNumber.

  • rows
    string[]

    The row labels, top to bottom (weekdays). With no rows or columns the chart shows its empty state.

  • values
    number[][]

    The values by row, then column: values[row][column]. The darkest step is the largest value.