Skip to content

Commit

Permalink
Sync tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Oct 10, 2022
1 parent 992f2aa commit 7718310
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export const heatmapFunction = (): HeatmapExpressionFunctionDefinition => ({
(handlers.variables?.embeddableTitle as string) ??
handlers.getExecutionContext?.()?.description,
},
syncTooltips: handlers?.isSyncTooltipsEnabled?.() ?? false,
},
};
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export type HeatmapInput = Datatable;
export interface HeatmapExpressionProps {
data: Datatable;
args: HeatmapArguments;
syncTooltips: boolean;
}

export interface HeatmapRender {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const heatmapRenderer: (

const timeZone = getTimeZone(getUISettings());
const { HeatmapComponent } = await import('../components/heatmap_component');
const { isInteractive, isSyncTooltipsEnabled } = handlers;
const { isInteractive } = handlers;

render(
<KibanaThemeProvider theme$={core.theme.theme$}>
Expand All @@ -89,7 +89,7 @@ export const heatmapRenderer: (
uiState={handlers.uiState as PersistedState}
interactive={isInteractive()}
chartsActiveCursorService={plugins.charts.activeCursor}
syncTooltips={isSyncTooltipsEnabled()}
syncTooltips={config.syncTooltips}
/>
</div>
</KibanaThemeProvider>,
Expand Down

0 comments on commit 7718310

Please sign in to comment.