useDrillKeyDriverAnalysis()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
Connects a custom chart drill to the Key Driver Analysis dialog through a managed Explain menu.
export declare function useDrillKeyDriverAnalysis(input: IUseDrillKeyDriverAnalysisOptions): IUseDrillKeyDriverAnalysisResult;
Parameters
Parameter | Type | Description |
|---|---|---|
{ insight, filters, locale, enabled, anchorRef, enableSecondGranularities, } | (not declared) | |
input |
Returns
IUseDrillKeyDriverAnalysisResult
Drillable items, the drill callback, and a menu element; not a component type.
Remarks
Use inside GenAiStore(), with one GenAiKeyDriverAnalysis() mounted under the same store. Catalog items come from that store. Pass drillableItems and onDrill to the chart and render drillMenu alongside it inside the element referenced by anchorRef. No internationalization provider is required. The hook presents every available comparison and manages menu dismissal and keyboard focus restoration.