
Examples
Basic Usage

Sankey Chart with Custom Colors

Attributes
Name of the table to query
IDs of filters to apply to the query
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:
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:
last 7 dayslast 30 dayslast 3 monthslast 6 monthslast 12 monthsweek to datemonth to datequarter to dateyear to dateprevious weekprevious monthprevious quarterprevious yearall time
- Allowed values:
- date:
string- Date column to filter on. Required when the data has multiple date columns.
Column name for source nodes
Column name for target nodes
Column name for flow values
Column name for percentage values (optional)
Title to display above the chart
Subtitle to display below the title
Information tooltip text (can only be used with title)
URL to link the info text to (can only be used with info)
Create a custom link title for the info link, placed after the info text (can only be used with info_link)
Format for values. See Value Formatting for available formats.
Node label displayAllowed values:
namevaluefull
Link label displayAllowed values:
valuepercentfullnone
Node alignmentAllowed values:
justifyleftrighttopbottom
Gap between nodes in pixels
Width of nodes in pixels
OrientationAllowed values:
horizontalvertical
Sort nodes by value
Link color modeAllowed values:
sourcetargetgradient
Node outline color
Node outline width in pixels
Chart configuration optionsAttributes:
- 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. Note: When used with tables, limit will disable subtotals to prevent incomplete subtotal rows.
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
Set a fixed height for the chart in pixels

