From c05c939ee113ac38244643a05ee23deb27edd49e Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Thu, 22 Jun 2023 17:58:56 +0530 Subject: [PATCH] feat: sorting for tooltip in graph view (#2948) * feat: sorting for tooltip in graph view * Update index.tsx * refactor: name of the variable in itemSort --------- Co-authored-by: Palash Gupta --- frontend/src/components/Graph/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/Graph/index.tsx b/frontend/src/components/Graph/index.tsx index f4ea8b14b2..6f0f475bac 100644 --- a/frontend/src/components/Graph/index.tsx +++ b/frontend/src/components/Graph/index.tsx @@ -181,6 +181,9 @@ function Graph({ }, }, position: 'custom', + itemSort(item1, item2) { + return item2.parsed.y - item1.parsed.y; + }, }, [dragSelectPluginId]: createDragSelectPluginOptions( !!onDragSelect,