Example
Attributes
Name of the table to query
Array of column names to use as filters
date_range
Use date_range to filter data for specific time periods. Accepts predefined ranges (e.g., “last 12 months”), dynamic ranges (e.g., “Last 90 days”), custom date ranges (e.g., “2020-01-01 to 2023-03-01”), or partial ranges (e.g., “from 2020-01-01”, “until 2023-03-01”)Example:Attributes:
- range:
enum
- date:
string
date_grain
Time grain for date truncation (default: day for date columns)
Column name for x-axis
Format for x values and axis labels
Format for x values and axis labels
Format for x values and axis labels
Column name for series
Column name for size
Title to display above the chart
Subtitle to display below the title
Information tooltip text (can only be used with title)
Custom SQL WHERE condition to apply to the query. For date filters, use date_range instead.
Custom SQL HAVING condition to apply to the query after GROUP BY
Maximum number of rows to return from the query
Column name(s) with optional direction (e.g. “column_name”, “column_name desc”)
Custom SQL QUALIFY condition to filter windowed results
Set the width of this component (in percent) relative to the page width
Configure the y-axisExample:Attributes:
- title:
string
- ticks:
boolean
- baseline:
boolean
- labels:
boolean
- Show/hide axis labels - gridlines:
boolean
- Show/hide gridlines - min:
number
- Minimum value for this axis - max:
number
- Maximum value for this axis - 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 secondary y-axisExample:Attributes:
- title:
string
- ticks:
boolean
- baseline:
boolean
- labels:
boolean
- Show/hide axis labels - gridlines:
boolean
- Show/hide gridlines - min:
number
- Minimum value for this axis - max:
number
- Maximum value for this axis - 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
- 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 - max:
number
- Maximum value for this axis - fit_to_data:
boolean
- Fit the axis to the data instead of including 0 - min_interval:
enum
- Minimum interval between axis ticks for time-based axes. This option is a suggestion, the actual interval may differ. - max_interval:
enum
- Maximum interval between axis ticks for time-based axes. This option is a suggestion, the actual interval may differ. - interval:
number
- Interval between axis ticks for numeric axes. This option is a suggestion, the actual interval may differ.
Show legend
chart_options
Example:Attributes:
- color_palette:
array