Several charts on a page
Each chart keeps its state in the page address under a key: #pcu=... by default. When a page has more
than one editable chart, give each its own urlKey, such as top and bottom:
/trends#top=1.eyJw...&bottom=1.eyJw...Of two charts with the same key only the first keeps it. The other stays out of the address: its
state is not kept in links or over a reload, and the Designer shows a warning on it. The sample
project's /twocharts page shows what happens.
urlKey takes letters, digits, _ and -, at most 40. Other characters are dropped, so line 1 and
line1 are the same key.
Which chart owns the page path
Section titled “Which chart owns the page path”A saved chart's page path (/trends/<id>) belongs to one chart: the first full, editable chart on the
page with a chartUrl that keeps its urlKey. That chart reads its saved chart from the path and
changes it after Open and Save.
Any other chart on the page (a dashboard tile beside it, a second editable chart):
- opens the chart its own
chartIdnames; - keeps the page's path when it opens or saves a chart;
- keeps its own saved chart in its own entry of the address, so a copied link from it opens the right chart in the right place.
The sample project's /pair page has two editable charts with their own keys on one saved chart's
page, and /pinned a tile beside a saved chart's page.
Browser Back
Section titled “Browser Back”Browser Back and Forward move each chart through the states it wrote to the address, within the configuration's limits now.
Charts that share their time
Section titled “Charts that share their time”Charts on one page can also share hover, x-traces, zoom and pan with a syncGroup. See
Synchronised charts. They still need their own urlKey each.