Skip to content

@sqlrooms/vega / VegaChartToolResultProps

Type Alias: VegaChartToolResultProps

VegaChartToolResultProps = ToolRendererProps<VegaChartToolOutput, VegaChartToolParameters> & object

Type Declaration

NameTypeDescription
className?string-
options?EmbedOptions-
editorMode?EditorModeWhich editors to show when viewing Default 'both'
aspectRatio?numberWidth-to-height ratio used when no fixed or automatic height is selected. Default 16/9
height?VegaChartHeightFixed outer chart height, or 'auto' to opt into category-aware sizing. Automatic sizing falls back to the aspect ratio for ordinary charts.
getHeight?VegaChartHeightResolverOptional application-specific height policy. Returning 'auto' applies the built-in category-aware sizing policy.