The sample project
Each release has a sample project, PowerChart-Ultra-Sample-Project-x.y.z.zip, ready for the
gateway's project import. Its source is
sample/project
in the repository. Copy its Trends view into your own project to start.
| Page | Shows |
|---|---|
/trends and /trends/:chartId |
The full chart, with saved charts opened by link. The view to copy. |
/overview |
A read-only trend (readOnly: true) for an overview screen. |
/restricted |
A chart on the restricted configuration: Line 1 only, 3 pens, 7 days. |
/timescale |
Tags stored by the Mustry TimescaleDB historian, on the timescale configuration. |
/dashboard |
A Time Range component above five clean dashboard tiles. |
/batches |
Comparisons with the starts of earlier batches, from the compareTo prop. |
/sync |
Synchronised charts and an embedded tile in one sync group, under a Time Range. |
/twocharts |
Two charts with the same urlKey, to show what happens. |
/pair |
Two editable charts, each with its own urlKey, on one saved chart's page. |
/pinned |
A dashboard tile beside a saved chart's page. |
/limited |
A chart bound to a Time Range longer than its configuration allows. |
/switch |
A chart whose configuration two buttons switch. |

The Trends view
Section titled “The Trends view”The Trends view holds one PowerChart Ultra component with:
configuration:default;chartIdbound to the view parameterchartId, which the page/trends/:chartIdfills;chartUrl/trends/{chartId}andnewChartUrl/trends;initialwith two pens, 8 hours, live;boundPensandannotationsbound tothis.props.outputwith script transforms, for the lab pens and batch notes (see Bound pens).
The view also has a list of quick ranges with shifts ("Early shift today") and a production day.
Demo data
Section titled “Demo data”The sample project's gateway script creates demo tags, users and 30 days of history only on a
gateway started with the environment variable PCU_DEMO=1, as the development stack is. On any other
gateway it does nothing, so no demo user with a known password appears.
On a demo gateway:
- tags under
[default]PowerChartDemo(Line 1 and Line 2 flow, pressure, temperature, mode and pump, and a buffer tank level with four alarms), stored by the Core historian; - users
alice(Operator),bob(Engineer) andcarol(Engineer, Lead), passwordTrend-Demo-2026; - a few notes, stored with
system.historian.storeAnnotations; - configurations
default,restrictedandtimescale.
See Development to run the stack yourself.
Projects of your own
Section titled “Projects of your own”The sample project hides Perspective's app bar toggle (session property appBar.togglePosition set
to hidden), because it floats over the bottom right of the page and covered buttons on a phone. A
project that keeps it still works: the component lifts its editors' buttons clear of it.