How it works › Embedded chrome

Embedded chrome

When one view is a part of your own page (a KPI head, a history strip beside your own words), the kit's status line ("119 of 119 rows · 9 groups") and a view's own control bar are noise. Two attributes turn them off, first-class, so no host reaches into the kit's class names. Zach, on Vibe Tracks hiding them with its own CSS: "can you please provide first class support for this so we don't need to do hacky css".

status =
controls =

A chart, with and without its chrome status · controls

Live

The Ashby chart of robotparts' actuators with no toolbar. status is the line under the view; controls is the chart's own Encode / Rows bar. Turned off, each takes no space: the plot keeps its height and the bar's goes back to the page.

The live view starts when it scrolls into sight.

From the example Actuator charts

index.html
<data-views src="views.base" view="Ashby · torque vs mass" toolbar="none" status="on" controls="on"></data-views>

Where it is said

views.base
views:
  - type: chart
    name: History strip
    status: false        # no "N of N rows" under it
    controls: false      # no Encode / Rows bar
    chart: { mark: line, encoding: { x: { field: t }, y: { field: value } } }

Comes from docs/CONTRACT.md §18 (embedded chrome) in docs/.