> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperwisor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# EM Spectrum

> An electromagnetic-spectrum band display.

<Info>
  **Category:** Display · **Reads data:** highlighted band · **Sends commands:** no
</Info>

## Mental model

An **EM Spectrum widget is a labeled spectrum ruler.** It shows the electromagnetic
spectrum as bands and highlights one — useful for RF, optical, and sensor work.

## When to use it

* Show where a signal/sensor sits on the spectrum
* Educational / RF context

## Settings

### General / Style

* **Orientation** · **band height / spacing**
* **Highlight band** · **highlight color** · **animate highlight**
* **Label position / color / size**

## Script API example

The same interactions from a [dashboard script](/script/overview):

```js theme={null}
// Show the spectrum panel only when relevant
widget.on('modeSwitch', 'on',  () => widget.show('spectrumView'));
widget.on('modeSwitch', 'off', () => widget.hide('spectrumView'));
```

<Card title="Spectral Graph" icon="chart-line" href="/dashboard/widgets/spectral-graph">
  For a wavelength intensity graph.
</Card>
