table_display
Downsampled display buffers for Boson.
Flags
| Flag | Value |
|---|---|
| Kind | query: reads values |
| Rows | one result, not a table |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
| Makes | a display value |
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
table |
reference | yes | A value's reference. |
x |
string | yes | |
y |
string | yes | |
mark |
"line" | "points" | "bars" | no | |
max_points |
integer | no | at least 1, at most 1000000 |
response_format |
"concise" | "detailed" | no | The byte budget: 64 KiB concise, 512 KiB detailed. |
Example
Over the example tables orders; ${input:name} is an input's reference and ${verb} the value an earlier call made.
table_display {
"table": "${input:orders}",
"x": "qty",
"y": "price",
"mark": "points"
}Result
197 of 197 rows drawn as points
{
"ref": "sha256:36ae5dfb0a028f0572b61a681fe44d3716ac481475ec5c246026ea2356e75f7a",
"kind": "display",
"mark": "points",
"rows": 197,
"skipped": 43,
"shown": 197,
"vertices": 197,
"origin": [
-3,
-37.86589426992265,
0
],
"bounds": {
"min": [
-3,
-37.86589426992265,
0
],
"max": [
20,
472.7930433682751,
0
]
}
}Diagnostics
A refusal comes back as ok: false with coded diagnostics; every code, with its fix, is on the diagnostics page. A parameter that does not match the schema above is ARG_INVALID, with the parameter's path.