Skip to main content
On this page

Kater CLI Present and share chart

kater chart describe

Shows what you can draw from a query: its columns, and what each kind of chart takes.

Read it before you write a chart’s spec, to know which columns fit each kind. It changes nothing.

Examples

Terminal window
# Show the columns of spend_by_platform and what each chart kind takes
kater chart describe --request-file spend_by_platform.json
# Keep the answer in a file, and show only what a pie chart takes
kater chart describe --request-file spend_by_platform.json --json > spend_by_platform_describe.json
jq '.capabilities.pie' spend_by_platform_describe.json

Arguments

ArgumentDescription
<path>Optional. In place of --request-file: the workspace, the query file or the chart file the request names.

Options

OptionDescription
--request-file <file>The query, as JSON, such as spend_by_platform.json. Give - to read it from standard input. See The request.

It also takes the global options --json, --kater-root, --scope and --help.

The request

FieldWhat it holds
sourceThe query: its name, and the full path of its workspace under namespace.
inputsOptional. The query’s parameter values in parameters, and the optional filters to turn on in filters.
spend_by_platform.json
{"source": {"name": "spend_by_platform", "namespace": {"path": "connections/snowflake_prod_connection/workspaces/ad_reporting"}}}

What it shows

FieldWhat it holds
authoringContextThe query’s business question, its sources and its comparisons.
columnsThe columns the query returns.
capabilitiesEach chart kind, such as bar or pie, with its roles, its controls and its presentation settings.
schemaRevisionThe revision of the query’s columns.
sourceRevisionThe revision of the query.

See also