Example
With Custom Colors
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
x_date_grain
Time grain for date truncation (default: day for date columns)
y_date_grain
Time grain for date truncation (default: day for date columns)
Column name for x-axis categories
Column name for y-axis categories
Column name for cell values
Title to display above the chart
Subtitle to display below the title
Info text to display in a tooltip next to the title. Can only be used with the title prop.
Format for values
Format for x axis labels
Format for y axis labels
Sort order for x axis categories (asc or desc)
Sort order for y axis categories (asc or desc)
Sort categories by total value (asc or desc). Applies to the first axis without explicit sort.
Show color scale legend
Show borders around heatmap cells
Chart configuration optionsExample:Attributes:
- color_palette:
array
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