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 chartImageUrl is set: the Chart tab shows that image; if it fails to load, the inferred chart
  • 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 only the chart image, if any

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

Props

PropTypeRequiredDefaultDescription
dataGenieStatementResponse✓-Raw statement_response from the Genie API
chartImageUrlstring-URL of a chart Genie rendered for this query, shown in place of the inferred chart
chartImageAltstring-Alt text for chartImageUrl
classNamestring-Additional CSS classes

Usage

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

<GenieQueryVisualization /* props */ />

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs