Skip to main content

GenieQueryVisualization

Renders a chart + data table for a Genie query result.

GenieQueryVisualization

Renders a chart + data table for a Genie query result.

  • When a chart type can be inferred: shows Tabs with "Chart" (default) and "Table"
  • When no chart fits: shows only the data table
  • When data is empty/malformed: renders nothing

Source: packages/appkit-ui/src/react/genie/genie-query-visualization.tsx

Props

PropTypeRequiredDefaultDescription
dataGenieStatementResponse-Raw statement_response from the Genie API
classNamestring-Additional CSS classes

Usage

import { GenieQueryVisualization } from '@databricks/appkit-ui';

<GenieQueryVisualization /* props */ />