Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Fullscreen dashboard

A compact chart in the page, a full dashboard behind the ⛶ button: the Fullscreen widget’s fullscreen= layout can show different and more widgets than the in-page view. Here the fullscreen view adds a lonboard map and controls that interact with both the map and the chart.

The in-page view

Synthetic sensor stations around San Francisco, summarized as a small chart. This chart is all the page shows inline — the map only exists in the fullscreen layout.

The fullscreen dashboard

The fullscreen= layout is a classic rail + map split: the left column stacks the controls and the same chart instance (a widget can appear in both views — traits stay in sync), the right column is the map. The range slider filters the map’s points through a FilterBinder (the binder widget must be part of the displayed layout to work in static export), and the dropdown re-types the chart via jsdlink.

Two sizing tricks worth copying: the map takes height="70vh" (lonboard accepts any CSS length) so it scales with the screen, and the chart’s width=1100 oversizes it on purpose — charts are capped at max-width: 100%, so an oversized chart simply fills whatever column it lands in. style= on the Fullscreen cascades --mw-* tokens to everything in the overlay; here it lets the control cards stretch to the rail width.

Sharing the dashboard

On the exported page, opening fullscreen updates the URL to ?fullscreen=sensor-dashboard — copy it to share a link that opens straight into the dashboard. The explicit widget_id= keeps that link stable across re-exports.