You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/product/apis-integrations/chat-api.mdx
+123-3Lines changed: 123 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -537,17 +537,137 @@ The `cubeSqlApi` tool executes SQL queries and returns data with metadata. The i
537
537
-`uuid` (string): Unique identifier for this query result
538
538
-`vegaSpec` (string): Vega-Lite v5 visualization specification as JSON string (when visualization is generated)
539
539
540
-
#### Loading All Results
540
+
#### Loading all Results
541
541
542
542
<WarningBox>
543
543
Query results in cubeSqlApi `toolCall.result.data` are limited to **100 rows** by default. Use `totalRows` to check if more data is available.
544
544
</WarningBox>
545
545
546
546
If you need to load all the data, you need to use `sqlQuery` from the results to make a call to the Cube API.
547
547
548
-
#### Displaying Charts
548
+
#### Displaying charts
549
549
550
-
The cubeSqlApi tool call returns `vegaSpec` that can be used to display data. Please note, it doesn't contain data. You need to use data from `toolCall.result.data`.
550
+
The `cubeSqlApi` tool call returns `vegaSpec` that can be used to display data.
551
+
552
+
Note that it doesn't contain data. You need to use the data from `toolCall.result.data`.
553
+
554
+
#### Styling charts
555
+
556
+
When rendering Vega charts, you can apply custom styling to match the look and feel of your application.
557
+
This includes adjusting colors, fonts, and other visual elements.
558
+
559
+
Here's a configuration example that mimics Cube's default styling:
0 commit comments