GenieQueryVisualization
Renders a chart + data table for a Genie query result.
GenieQueryVisualization
Renders a chart + data table for a Genie query result.
- When
chartImageUrlis 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
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
data | GenieStatementResponse | ✓ | - | Raw statement_response from the Genie API |
chartImageUrl | string | - | URL of a chart Genie rendered for this query, shown in place of the inferred chart | |
chartImageAlt | string | - | Alt text for chartImageUrl | |
className | string | - | Additional CSS classes |
Usage
import { GenieQueryVisualization } from '@databricks/appkit-ui';
<GenieQueryVisualization /* props */ />