From 610b14e64bb7ebe2955ceb3b4cc80dd3fed38f12 Mon Sep 17 00:00:00 2001 From: ArthurKnaus Date: Mon, 18 Mar 2024 17:21:42 +0100 Subject: [PATCH] fix(metrics): Scatter series z index (#67151) --- static/app/views/ddm/chart/useMetricChartSamples.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/app/views/ddm/chart/useMetricChartSamples.tsx b/static/app/views/ddm/chart/useMetricChartSamples.tsx index 9d4a820afb0581..75215cca5e6a29 100644 --- a/static/app/views/ddm/chart/useMetricChartSamples.tsx +++ b/static/app/views/ddm/chart/useMetricChartSamples.tsx @@ -189,7 +189,7 @@ export function useMetricChartSamples({ value: yPosition, }, ], - z: timeseries.length + 1, + z: baseProps.series.length + 1, }; }); } @@ -244,7 +244,6 @@ export function useMetricChartSamples({ valueRect, xAxis, yAxis, - timeseries.length, ] );