# Chart Viewer

> Realtidsplottning och historik för numeriska kanaler — lägg till kanaler, ställ in lookback och Y-axel, zooma, mät och exportera.

_Källa: E-Sharp (esharp.se) · Accordion Funktioner_


> **Note:** This page describes the chart in the discontinued Windows application Accordion Pilot. The current interface is the browser-based [Web UI – Chart Viewer](/accordion/support/docs/webui-chart-viewer); the concepts below apply to it as well.

## Overview

The **Chart** view provides real-time plotting and historical visualisation for numeric channels — for monitoring trends, analysing signal behaviour and debugging time-dependent issues.

## Adding channels

Add a channel from the Channels view (right-click → **Add to Chart**) or from the Chart view (**Add Channel**). Each channel is a separate series with its own colour; 5–10 channels per chart is a sensible maximum. Remove a series from the legend.

## Configuration

- **Lookback points** — how many data points to retain. With 500 ms polling, 1000 points ≈ 8 minutes; with 100 ms polling ≈ 2 minutes.
- **Y-axis** — auto-scales by default; set a manual range to zoom into a band.
- **Time axis** — relative (−60 s … 0 s) or absolute (time of day).
- **Update interval** — follows the main polling interval.
- **Clear history** — removes all points and starts fresh.

## Analysis

Hover for a tooltip (time, channel, value) or enable a crosshair to read all series at one time. Zoom with the mouse wheel or by dragging a rectangle; double-click to reset; pan by dragging. A statistics view gives min, max, mean, std dev and sample count for the visible data. A second Y-axis can carry channels with a different scale (e.g. voltage left, current right).

## Export

Export the chart data to CSV/Excel (timestamp + one column per series) or save the chart as an image (PNG/JPEG/BMP) for reports.

```
Timestamp,CHANNEL_1,CHANNEL_2
2024-01-15 14:30:00,3.3,1.5
2024-01-15 14:30:01,3.31,1.52
```

## Performance

Chart load depends on the number of series, the lookback size and the polling rate. Keep to 5–10 channels and a reasonable lookback (1000–5000 points), clear history periodically, and close the chart view when it is not needed.
