
Examples
Basic Usage

With Volume

With Custom Colors

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.
Bucket dates into a grain. Pass the raw date column as
x and the chart truncates and groups for you. Temporal grains (day, week, month, quarter, year, hour) preserve the year — use for time-series. Seasonality grains (day of week, day of month, day of year, week of year, month of year, quarter of year) collapse across years — use for cyclical patterns like “which month sells most regardless of year”.Allowed values:dayweekmonthquarteryearhourday of weekday of monthday of yearweek of yearmonth of yearquarter of year
Format for x-axis values and labels. See Value Formatting for available formats.
Format for y-axis values and labels. See Value Formatting for available formats.
Format for secondary y-axis (volume) values. See Value Formatting for available formats.
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)
Configure the y-axisExample:Attributes:
- title:
string - title_position:
string- Position of the axis title. “top” places it horizontally at the top, “side” places it vertically along the axis. Defaults to “side” for 100% stacked charts, “top” otherwise.- Allowed values:
topside
- Allowed values:
- ticks:
boolean - baseline:
boolean - labels:
boolean- Show/hide axis labels - gridlines:
boolean- Show/hide gridlines - min:
number- Minimum value for this axis (number for numeric axes, date string for date axes) - max:
number- Maximum value for this axis (number for numeric axes, date string for date axes) - fit_to_data:
boolean- Fit the axis to the data instead of including 0 - interval:
number- Interval between axis ticks for numeric axes. This option is a suggestion, the actual interval may differ.
Configure the x-axisExample:Attributes:
- title:
string - show_title:
boolean- Whentrue, renders the auto-derived axis title (the x column name) below the chart. Ignored whentitleis set explicitly. Defaults tofalse— auto-derived column-name titles usually read as visual noise and the axis labels speak for themselves. - label_wrap:
boolean - ticks:
boolean - baseline:
boolean - labels:
boolean- Show/hide axis labels - gridlines:
boolean- Show/hide gridlines - min:
number- Minimum value for this axis (number for numeric axes, date string for date axes) - max:
number- Maximum value for this axis (number for numeric axes, date string for date axes) - fit_to_data:
boolean- Fit the axis to the data instead of including 0. Defaults to true for numeric x-axes, false otherwise. - min_interval:
string- Minimum interval between axis ticks for time-based axes. This option is a suggestion, the actual interval may differ.- Allowed values:
yearquartermonthweekdayhour
- Allowed values:
- max_interval:
string- Maximum interval between axis ticks for time-based axes. This option is a suggestion, the actual interval may differ.- Allowed values:
yearquartermonthweekdayhour
- Allowed values:
- interval:
number- Interval between axis ticks for numeric axes. This option is a suggestion, the actual interval may differ. - label_rotate:
number- Rotation angle of axis label in degrees. Positive values rotate clockwise, negative values rotate counter-clockwise. - title_arrow:
boolean- Show/hide the arrow (→) on the axis title - max_label_length:
number- Maximum character length for axis labels. Labels exceeding this length will be truncated with an ellipsis. Defaults to 20 characters when labels are rotated.
Candlestick chart configuration optionsAttributes:
- up_color:
string- Color for bullish (up) candles - down_color:
string- Color for bearish (down) candles - zoom:
boolean- Enables zoom by dragging on the chart area
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.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:
