Skip to main content

2. display_chart — Display Chart

Mode: Both · Category: Data Visualization

Displays a chart visualization in the frontend. You can pre-fill any subset of the fields below; the LLM fills the rest at runtime.

- id: display_chart
  x_axis_id: INVOICE.INVOICE_VENDOR_NAME
  y_axis_id:
    - KPI_INVOICE_COUNT
- id: display_chart
  x_axis_id: INVOICE.INVOICE_VENDOR_NAME
  y_axis_id:
    - KPI_INVOICE_COUNT
  chart_type:
    - bar
  limit: 10
  order_by: KPI_INVOICE_COUNT
  ascending: false
- id: display_chart
  x_axis_id: INVOICE.INVOICE_MONTH
  y_axis_id:
    - KPI_INVOICE_COUNT
    - KPI_TOTAL_INVOICE_VALUE
  chart_type:
    - bar
    - line

Any field you set is fixed. Any field you omit is decided by the LLM.

pc_at_display_chart.png

Field

Type

Description

x_axis_id

string

Record attribute ID for the x-axis.

y_axis_id

list[string]

KPI IDs for the y-axis (max 2).

chart_type

list[string]

Chart types per y-axis (e.g., bar, line; max 2).

limit

int

Max rows for the chart data query.

order_by

string

Column ID to sort by (must be one of the x/y-axis IDs).

ascending

bool

Sort direction.

Related topics