Ensure that tooltip and legend have same parameters to calculate and display label equally (#53176)

This commit is contained in:
Beto Muniz
2022-08-03 14:47:22 -03:00
committed by GitHub
parent ae101bf935
commit 4c02d072e3
3 changed files with 11 additions and 5 deletions

View File

@@ -71,6 +71,7 @@ export const TimeSeriesPanel: React.FC<TimeSeriesPanelProps> = ({
<ZoomPlugin config={config} onZoom={onChangeTimeRange} />
{options.tooltip.mode === TooltipDisplayMode.None || (
<TooltipPlugin
frames={frames}
data={alignedDataFrame}
config={config}
mode={options.tooltip.mode}
@@ -117,6 +118,7 @@ export const TimeSeriesPanel: React.FC<TimeSeriesPanelProps> = ({
) : (
<ContextMenuPlugin
data={alignedDataFrame}
frames={frames}
config={config}
timeZone={timeZone}
replaceVariables={replaceVariables}