From 387006fe25ae99234a4e14018d083e0b26233265 Mon Sep 17 00:00:00 2001 From: DimaAmega Date: Wed, 18 Dec 2024 16:30:09 +0400 Subject: [PATCH] fix DashboardPanelTestSuite --- src/evidently/ui/dashboards/test_suites.py | 2 ++ .../evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/evidently/ui/dashboards/test_suites.py b/src/evidently/ui/dashboards/test_suites.py index e4325b4dd1..8e349b4b84 100644 --- a/src/evidently/ui/dashboards/test_suites.py +++ b/src/evidently/ui/dashboards/test_suites.py @@ -130,6 +130,7 @@ def _create_aggregate_fig(self, points: TestResultPoints): layout={"showlegend": True}, ) fig.update_layout(barmode="stack") + fig.update_xaxes(type="category") return fig def _create_detailed_fig(self, points: TestResultPoints): @@ -185,6 +186,7 @@ def get_color(test, date) -> Optional[str]: barnorm="fraction", ) fig.update_yaxes(showticklabels=False) + fig.update_xaxes(type="category") return fig diff --git a/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx b/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx index 669c93aa76..43a798d9b2 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx @@ -67,7 +67,8 @@ const BigGraphWidgetContent: React.FunctionComponent = (pro }, // text: [], // textposition: 'top center', - name: `selected point
${clickEvent.points[0].x}: ${roundPoint2Digit(clickEvent.points[0].y)}` + name: `selected point
${clickEvent.points[0].x}: ${roundPoint2Digit(clickEvent.points[0].y)}`, + hoverinfo: 'skip' } satisfies Plotly.Data ] : []