Examples
Basic Usage
Chord Chart with Custom Colors
Chord Chart with Raw ECharts Overrides
Attributes
Semantic metric name to display, from metrics/*.yaml. Use instead of the raw data/value/x/y attributes.
Filter data to a time period. Attributes:
date_range is an OBJECT with range (the period) and optionally date (which column to filter on when the table has more than one). Shape: date_range={ range="last 12 months" date="order_date" }. range accepts predefined values (last 7 days, month to date), dynamic patterns (Last 90 days), custom windows (2020-01-01 to 2023-03-01), or partial ranges (from 2020-01-01, until 2023-03-01). Pass a plain string for range — the whole object is NOT a string.Example:- range:
string- Time period to filter. Use presets like ‘last 7 days’, dynamic patterns like ‘Last 90 days’, custom ranges like ‘2020-01-01 to 2023-03-01’, or partial ranges like ‘from 2020-01-01’.- Allowed values:
todayyesterdaylast 7 dayslast 30 dayslast 3 monthslast 6 monthslast 12 monthsprevious weekprevious monthprevious quarterprevious yearthis weekthis monththis quarterthis yearnext weeknext monthnext quarternext yearweek to datemonth to datequarter to dateyear to dateall time
- Allowed values:
- date:
string- Date column to filter on. Required when the data has multiple date columns.
Information tooltip text (can only be used with title). Displays an info icon next to the title.
Create a custom link title for the info link, placed after the info text (can only be used with info_link)
Format for values (defaults to
num, or the metric format in metric mode). See Value Formatting for available formats.Chart configuration optionsExample:Attributes:
- color_palette:
array of strings - series_colors:
map of key-value pairs
Raw ECharts options deep-merged over the chart’s final configuration. Use for anything the structured props do not expose —
graphic, visualMap, tooltip styling, and so on. Partial overrides win key-by-key without clobbering Studio’s computed siblings. For overrides scoped to the data series, use echarts_series_options.Example:Raw ECharts series options deep-merged into the chart series. Use for series-level styling the structured props do not expose.Example:
Time in seconds between automatic data refreshes (minimum 30). Overrides the page-level auto-refresh setting for this component.
Maximum number of rows to return from the query. Note: When used with tables, limit will disable subtotals to prevent incomplete subtotal rows.
Extra columns to include in the tooltip on hover. Each entry is
{ value, label?, fmt?, color_by_sign?, down_is_good? }. See the tooltip fields guide for examples.
