Series Editor (Charts)
The Series Editor defines global series, the data unit drawn by charts. Charts refer to a series by name,
and scripts write values with SERIES["Name"].Set(v).
Open it from Data Editor Pages → Series (Charts) in the Solution Explorer; the tab title shows Series Editor.
What a series is
A series is the record of one named quantity changing over time. "Head 1 temperature" and "defects today" are each one series. A series is a project-wide object that does not belong to any chart; a chart is a view that draws that record in its own way.
| Chart | How it uses the same series |
|---|---|
| TrendChart | The whole history of the series as lines, steps, areas or bars |
| PieChart · BarChart · AnalysisChart (Column / Stacked / Pareto) | The latest values of the referenced series as slices or bars |
| AnalysisChart (Scatter / Path) | The XY buffer of the referenced series (filled with SERIES["Name"].AddXY(x, y)) as scatter or trajectory |
| AnalysisChart (Heat) | Does not use series — 2-D cell values are put directly with SetCell. |
So even when one defect-count series is shown in a pie, a Pareto and a trend line at the same time, there is only one copy of the data.
Screen layout
The Series list is on the left, and the settings of the selected series are on the right. Each card in the list shows the name, how values arrive (auto collect or script), and the number of points kept and the time they cover.

| Item | Description | Default |
|---|---|---|
| Name | Series name, unique in the project. Charts reference it and scripts call SERIES["Name"]. Case is ignored, and a duplicate shows a warning right away. | Series1, Series2 … |
| Title | Name shown in legends and labels. Empty = use the name. | (empty) |
| How values arrive | Choose Collect a variable automatically or A script writes the value (see below). Leaving the variable empty makes it a script series. | A script writes the value |
| Every | Auto collect interval (ms). The 0.1 sec · 0.2 sec · 0.5 sec · 1 sec · 5 sec buttons set it at once. | 500 |
| Color | Line color in the Trend chart. Click a swatch or choose with Pick...; with Auto (palette) the chart assigns palette colors in order. Pie and bar charts use their own colors. | Auto |
| Data Points | How many recent points to keep. Older points are dropped as new ones arrive. The Latest only · 1 min · 10 min · 1 h buttons calculate the count for you. | 600 |
| Button | Action |
|---|---|
| Add | Creates a new series with a name that is not used yet. |
| Duplicate | Creates one more series with the same settings as the selected one. |
| Delete | Deletes the selected series. It asks for confirmation because charts may refer to it. |
| Save | Saves. A series with an empty or duplicated name is not saved; saving also refreshes the SERIES[ list of the code helper. |
- While editing,
*is added to the tab title, and closing the tab without saving asks whether to save. - Series are saved in
Series\Series.jsonin the project folder and are read again automatically when the project changes. - For an auto-collected series, the time kept is Data Points × interval. For example, to keep 30 minutes at 1-second intervals, set the interval to 1000 and Data Points to 1800. For series that need no history (pie slices, etc.), use 1 (latest only).
Two ways to put values in
| Way | Description |
|---|---|
| Collect a variable automatically | Set the variable and the interval, and the variable is read and stored at that interval. Choosing the variable with Find shows whether it really exists and its current value. Only the forms name · Module::name · array#index are accepted. |
| A script writes the value | The code to write it (SERIES["Name"].Set(value);) is shown and can be copied with Copy. The script puts values in whenever it wants. |
FUNCTION RecordCycle(double cycleMs)
{
// Write one value to the series Cycle, created with 'A script writes the value'
SERIES["Cycle"].Set(cycleMs);
return true;
}Caution Do not mix the two ways in one series. Calling
Set()orAddXY()on an auto-collected series is rejected and a warning is logged once.
Note The variable box of auto collect does not accept
TAG.nameorIO.namedirectly. To keep a PLC tag value as a trend, let a script copy the tag value into a variable and have the series collect that variable.
SERIES[...] writes straight to the data store without looking for screen controls, so values keep accumulating even when nobody is looking at the chart. For all script functions, see XScript — SERIES.
Connecting series to charts
PieChart · BarChart · AnalysisChart — Select Series
Press the [...] button of the chart's SeriesNames property to open the Select Series window.
- Move series from Available series to Selected (display order). Only listed series can be added, so there are no typos.
▶/◀add / remove,▶▶/◀◀add all / remove all, and▲/▼change the display order. Double-click moves an item to the other side.- The order of the selected list is the display order of the slices or bars. OK puts the list into the property as a comma-separated string.
- An item shown as
name (?)refers to a series that is not defined (deleted or renamed). Remove it or create the series again; the build also shows a warning.
TrendChart — Trend Series Editor
Press [...] of the TrendChart's SeriesList property to open the Trend Series Editor. Each series can have its own display style.
| Item | Description |
|---|---|
| Series | Choose the global series from the combo (no free typing). |
| Title | Legend name used only in this chart. Empty = the title of the series definition, or the name if that is empty too |
| Type | Line / StepLine / Area / Column |
| Y Axis | Left / Right — use the right axis to overlay values with different units. |
| Line Color · Thickness | Empty = the color of the series definition, or the default palette if that is empty too |
- Set overwrites the selected item with the values on the right, Add adds a new item, Remove deletes the selected item, and Clear empties the whole list.
- The order of the list on the left is the legend order, the drawing order when lines overlap and the palette order. The same series cannot be added twice to one chart.
Caution The fields on the right are a temporary editing area. If you change values and press OK without pressing Set, the edits are discarded.
Workflow
- In the Series Editor, create a series with Add and set its name and title.
- For Collect a variable automatically, set the variable and interval; for A script writes the value, note the code to call from the script.
- Set Data Points and Save.
- Place a chart such as TrendChart in the screen designer and attach the series with
SeriesList/SeriesNames. → UI Controls (ToolBox) - Build and run; the chart draws the values.