{% comment %} A legend that doubles as a tally, and as a filter. Every entry carries how many fall in it, because the question being asked of an overlay is usually "how many", not just "which colour means what". The no-data entry is counted the same way and is never dropped when it is empty: a legend that hides it teaches the reader that grey means nothing, and grey is the one colour that must keep meaning "not recorded". Each entry is also a button. Reading "four racks are over 90%" and then hunting the room for four green-ish boxes is the step the legend used to leave the reader to do by eye; clicking the band picks those four out and lets the rest recede. Pass `filter` naming the group of things this legend colours: `racks`, `devices`, `cables` or `sites`. Anything on the page carrying `data-lens-filterable=""` and a `data-band` is picked out by it, which is all `legend.js` needs to know. A legend with no `filter` is a key rather than a control, which is what the cabling legend on the floor is. {% endcomment %}