mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
GraphNG: display original values in the tooltip when stacking (#33740)
This commit is contained in:
parent
dbcfebac56
commit
b2d4730ca1
@ -95,7 +95,7 @@ export const TooltipPlugin: React.FC<TooltipPluginProps> = ({
|
|||||||
const plotSeries = plotInstance.series;
|
const plotSeries = plotInstance.series;
|
||||||
|
|
||||||
const fieldFmt = field.display || getDisplayProcessor({ field, timeZone, theme });
|
const fieldFmt = field.display || getDisplayProcessor({ field, timeZone, theme });
|
||||||
const value = fieldFmt(plotInstance.data[focusedSeriesIdx!][focusedPointIdx]);
|
const value = fieldFmt(field.values.get(focusedPointIdx));
|
||||||
|
|
||||||
tooltip = (
|
tooltip = (
|
||||||
<SeriesTable
|
<SeriesTable
|
||||||
@ -128,7 +128,7 @@ export const TooltipPlugin: React.FC<TooltipPluginProps> = ({
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const value = field.display!(plotInstance.data[i][focusedPointIdx]);
|
const value = field.display!(otherProps.data.fields[i].values.get(focusedPointIdx));
|
||||||
|
|
||||||
series.push({
|
series.push({
|
||||||
// TODO: align with uPlot typings
|
// TODO: align with uPlot typings
|
||||||
|
Loading…
Reference in New Issue
Block a user