# Web chart interactions & data status :id=top

------

> _Doc Ver:_ 1.0  
_App Ver:_ 2.6.6.53  
_Date:_ 10/23/2026

------

This page documents the chart interactions and data-status indicators of the **SA1 2.x** monitoring pages: wheel zoom, drag panning, crosshair, stale-data badge, skeleton loading and time-window presets. The upgrade changes look and interaction only — **page layout, menus and operation habits are unchanged**.

For device troubleshooting see [Start, check, upgrade](operate.md). Data formats: [Wavelength](data-wl.md) · [Spectrum](data-os.md) · [Physical value](data-pv.md).

------

## 1. Covered pages :id=pages

| Page | Entry | Charts | Interactions |
|------|-------|--------|--------------|
| Spectrum | Monitor → Spectrum (`os.php` / `os.ws.php`) | Highcharts | Wheel zoom, box select, pan, crosshair, streaming zoom retention |
| Home RT trend | Monitor → home RT tab | Highcharts | Same + time-window presets |
| History RT | Report → history RT tab (`list.hs.php`) | ECharts | dataZoom slider/inside, crosshair, toolbox + time-window presets |
| Sensor detail | Click a sensor in the PV list (`da_sensor.php` / `da_sensor.ws.php`) | Highcharts ×4 | Wheel zoom, box select, pan, crosshair |
| Gauge | View → Gauge (`gauge.php`) | Highcharts | Data-status indicators |
| Thermometer | Tools → Thermometer (`thermometer.php`) | Table | Data-status indicators (30 s threshold) |

Pages not listed (PV list, reports, …) keep their original look and are not affected.

## 2. Chart interactions :id=interact

| Action | Effect | Where |
|--------|--------|-------|
| **Wheel** | Horizontal zoom around the cursor | Spectrum / home RT / sensor detail |
| **Shift + wheel** | Vertical zoom | Same |
| **Drag a box** | Zoom to selection | Same (legacy Highcharts way, kept) |
| **Shift + drag** | Pan (after zooming) | Same |
| **Double-click** | Reset zoom | Same |
| **Reset button** | Reset zoom (top-right of chart) | Same |
| **Hover** | Crosshair snap + value tooltip | All charts |

- The spectrum page keeps your zoom window while streaming: the curve keeps updating while you inspect a detail; it auto-resets only when the sampling window (data length) changes.
- The history RT page uses ECharts: drag the bottom dataZoom slider to select a range, wheel-zoom inside the chart, and use the top-right toolbox for box zoom, restore and image export.
- Channels use a fixed 32-color palette: the same channel number has the same color on every page.

## 3. Data-status indicators :id=status

| State | Display | Meaning |
|-------|---------|---------|
| Skeleton | Gray shimmer placeholder over the chart | Page just opened, first frame not yet received |
| **Waiting for data…** | Gray pill badge | Subscribed, no data frame received yet |
| **No data Xs** | Red pill badge (pulsing dot) | No new data for more than 5 s (30 s for the thermometer) |

The badge disappears automatically when data resumes. When "No data" appears, check in order:

1. Whether acquisition is paused (page pause button / device stopped).
2. Whether `sa-di` is alive and UDP **8190** is free: checklist in [Start, check, upgrade](operate.md).
3. Network between the browser and the device (switch, cabling, WiFi).

## 4. Time-window presets :id=presets

Next to the `Data Length` input on the home RT and history RT pages there are **1m / 2m / 5m** preset buttons:

- Points = minutes × 60 × refresh rate (Refresh Frequency from `listview.json`; at the factory 100 Hz, 1m = 6000 points).
- Fully equivalent to typing into `Data Length`; persisted in the same cookie (`sa_rt_datalength`, 30 days).
- Very large point counts slow chart refresh — switch back to a smaller window if needed.

## 5. Visual theme :id=theme

The monitoring pages share a restrained light industrial theme: cool-gray canvas, white cards, soft semantic badges (green run / amber warning / red error). The theme applies only to the pages listed in section 1; help, settings and other pages keep their original styling.

------

## Change log :id=changelog

|Version|Date|Notes|
|:--:|----|-----|
|1.0|10/23/2026|First release: chart interactions (zoom/pan/crosshair/streaming retention), data status (skeleton/waiting/stale badge), time-window presets and light theme.|
