Skip to main content

Dashboard URL Parameters

Rill dashboards encode their full state in the URL query string. These parameters can be used in browser URLs, shared links, bookmarks, and the Embed Iframe API setState method.

Global Parameters

ParameterValues / FormatDescription
viewexplore (default), pivot, tddActive dashboard view
trISO 8601 duration (P7D, P30D) or range (2024-01-01T00:00:00.000Z,2024-01-31T23:59:59.999Z)Time range. Also supports Rill syntax (-7d/d to now/d)
tzIANA identifier (UTC, America/New_York)Timezone
grainsecond, minute, hour, day, week, month, quarter, yearTime aggregation granularity
compare_trSame format as tr. Use rill-PP for previous periodComparison time range
compare_dimDimension nameDimension for comparison
highlighted_trISO 8601 rangeHighlighted/scrubbed time range on the time series chart
fURL-encoded filter expressionFilters. Decoded example: region IN ('North','South')

Explore View Parameters

Apply when view=explore or no view is set.

ParameterValues / FormatDescription
measuresComma-separated measure namesVisible measures
dimsComma-separated dimension namesVisible dimensions
expand_dimDimension nameExpanded dimension in leaderboard
sort_byMeasure or dimension nameSort field
sort_typevalue, percent, delta_abs, delta_percent, dimSort metric type
sort_dirASC, DESCSort direction
leaderboard_measuresComma-separated measure namesMeasures shown in leaderboard context
lb_ctxtrue, falseShow context for all leaderboard measures

Time Dimension Detail Parameters

Apply when view=tdd.

ParameterValues / FormatDescription
measureMeasure nameExpanded measure
chart_typetimeseries / line, bar, stacked_bar, stacked_areaChart visualization type
pintrue, falsePin the detail view

Pivot View Parameters

Apply when view=pivot. The sort_by and sort_dir global parameters also apply here.

ParameterValues / FormatDescription
rowsComma-separated dimension names or time dims (time.day, time.month)Row fields
colsComma-separated dimension, measure, or time dim namesColumn fields
table_modenest (default), flatTable display mode
row_limitIntegerMaximum rows displayed

Advanced Parameters

ParameterDescription
gzipped_stateBase64-encoded gzipped state. Auto-generated when URL length exceeds limits.
stateLegacy protobuf-encoded state. Maintained for backward compatibility; prefer individual parameters.

URL Encoding

When constructing URLs programmatically:

  • URL-encode special characters in filter expressions (%28, %29, + for spaces)
  • Do not encode commas in list parameters (measures=revenue,orders)
const params = new URLSearchParams();
params.set("view", "explore");
params.set("tr", "P7D");
params.set("grain", "day");
params.set("f", "region IN ('North','South')");
params.set("measures", "revenue,orders");

const url = `https://ui.rilldata.com/org/project/explore/dashboard-name?${params}`;