From aeb4867bdfee2a78c4eebd574b42010968f75243 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Sat, 18 Feb 2023 15:46:37 +0530 Subject: [PATCH] Few dashboard graph improvements. --- web/pgadmin/dashboard/static/js/Dashboard.jsx | 2 +- web/pgadmin/static/js/Theme/overrides/uplot.override.js | 1 + web/pgadmin/static/js/components/PgChart/StreamingChart.jsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/dashboard/static/js/Dashboard.jsx b/web/pgadmin/dashboard/static/js/Dashboard.jsx index 2fd2795c3..00d7b5873 100644 --- a/web/pgadmin/dashboard/static/js/Dashboard.jsx +++ b/web/pgadmin/dashboard/static/js/Dashboard.jsx @@ -942,7 +942,7 @@ export function ChartContainer(props) { } /> {!props.errorMsg && !props.isTest && props.children} - + {props.errorMsg && } ); diff --git a/web/pgadmin/static/js/Theme/overrides/uplot.override.js b/web/pgadmin/static/js/Theme/overrides/uplot.override.js index 0780da9f4..3466713c0 100644 --- a/web/pgadmin/static/js/Theme/overrides/uplot.override.js +++ b/web/pgadmin/static/js/Theme/overrides/uplot.override.js @@ -21,6 +21,7 @@ export default function uplotOverride(theme) { borderRadius: theme.shape.borderRadius, color: theme.palette.background.default, backgroundColor: theme.palette.text.primary, + zIndex: 9999, '& .uplot-tooltip-label': { display: 'flex', diff --git a/web/pgadmin/static/js/components/PgChart/StreamingChart.jsx b/web/pgadmin/static/js/components/PgChart/StreamingChart.jsx index f4a25a4f7..903c85590 100644 --- a/web/pgadmin/static/js/components/PgChart/StreamingChart.jsx +++ b/web/pgadmin/static/js/components/PgChart/StreamingChart.jsx @@ -69,6 +69,7 @@ export default function StreamingChart({xRange=75, data, options}) { alpha: 0.3, }, cursor: { + y: false, drag: { setScale: false, }