Reference
Layout options
Five theme fields that change the filter bar, the date range label, spacing and the chart legend.
Five theme fields change the layout. Each takes one value from a fixed list, never a CSS value. A value that is not on the list is left out, with one console warning. Layout is the same in light and dark mode, so set these outside general.darkOverrides.
These fields require the plugin release listed in Changelog and versioning.
5 fields. Leave one out, or set its first value, and the embed looks as it does today.
| Field | Values | When to use |
|---|---|---|
dashboard.filterBar.layout | inline (default): Today: the filters sit in the row above the cards and wrap.row: The filters get their own row, each at its natural width. The date filter comes first.full-width: The filters share the row equally and stretch to its end. The date filter takes two shares. On a narrow embed, one filter per line. | You want a full-width date range filter, or the filters on a row of their own. |
dashboard.filterBar.labelPlacement | auto (default): Today, per design: legacy puts the name inside the control (above it when selectBoxVariant is static); v2 puts it as a prefix in the control.above: The filter name sits above the control (part filter-label).inside: The name is inside the control and stays as a prefix after a value is chosen, for example “Region: West”.hidden: The name is not on screen. Screen readers still read it. | You want the filter name and the chosen value in the control, for example “Time filter: Last 24 hours”. |
dashboard.filterBar.dateRangeLabel | off (default): Today: no words line.on: The chosen range in words (part date-filter-value): a preset shows its name, a custom range that ends today shows “Last 13 days”, other ranges show their dates. The exact dates are in its tooltip. It changes when the viewer selects Apply. | You want the range in words on top of the date filter, for example “Last 13 days”. |
general.density | comfortable (default): Today.compact: Spacing goes one step down on the 4px grid: card padding, gaps between cards, filter height, table rows. Text size does not change. Click targets stay 28px or taller. | Your business users have small laptops and want more on a 13 inch screen. |
chart.legend.position | auto (default): The chart uses the design’s existing default. Legacy keeps its legend for a chart with one series. V2 can hide a redundant one-series legend.top: Above the chart.bottom: Below the chart.right: Right of the chart. On a card narrower than 480px it goes below.hidden: No legend. The series names stay in the tooltip. | The legend sits on top of the bars, or takes space the chart needs. |
All five in one theme. With labelPlacement: "above" and dateRangeLabel: "on", the line on top of the date filter reads the filter name and the range, for example “Order date: Last 13 days”:
<dbn-dashboard
token="GUEST_TOKEN"
dashboard-id="DASHBOARD_ID"
admin-theme-options='{
"general": { "density": "compact" },
"dashboard": {
"filterBar": { "layout": "full-width", "labelPlacement": "above", "dateRangeLabel": "on" }
},
"chart": { "legend": { "position": "bottom" } }
}'
></dbn-dashboard>

A metric’s own saved legend setting wins over chart.legend.position. A spacing value you set in the theme, such as cardCustomization.padding or dashboard.horizontalGap, wins over general.density.
Next, style the date filter.