Skip to content

Heatmap

Activity by day, or by hour and weekday, as a grid of cells whose depth of colour is the value. Hover a cell for the exact number.

Orders per day

LessMore

1 June – 29 November 2026. Each column is a week, Monday at the top.

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/heatmap.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-heatmapOn a <ul>: seven rows (Monday to Sunday), one column per week. Scrolls sideways when it does not fit.
--vOn each cell: the value from 0 to 1.
data-tipOn each cell: the text shown on hover (“Tue 14 Jul · 18 orders”).
mn-heatmap-hoursRows of equal cells instead: set --cols (default 24) for an hour-by-weekday grid.
mn-heatmap-legendA “less … more” key built from the same cells.
--cell · --gapCell size and spacing.

Accessibility

  • Colour depth alone is not readable by everyone: give the grid role="img" and an aria-label that states the finding (“Busiest on Tuesdays and Thursdays”).
  • Offer the numbers as a table or a download for anyone who needs the exact values.
  • A colour role (mn-success, mn-accent…) on the list changes the hue.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page