From 173cfb72b2fab8aa45b286a88812593dcf0c2993 Mon Sep 17 00:00:00 2001 From: Rohit Bhati Date: Thu, 7 Nov 2024 22:00:45 +0530 Subject: [PATCH] Format dashboard graph metrics for better readability. #6016 --- web/pgadmin/dashboard/static/js/Graphs.jsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web/pgadmin/dashboard/static/js/Graphs.jsx b/web/pgadmin/dashboard/static/js/Graphs.jsx index e8a7adf71..79f3d7743 100644 --- a/web/pgadmin/dashboard/static/js/Graphs.jsx +++ b/web/pgadmin/dashboard/static/js/Graphs.jsx @@ -17,7 +17,7 @@ import {useInterval, usePrevious} from 'sources/custom_hooks'; import PropTypes from 'prop-types'; import StreamingChart from '../../../static/js/components/PgChart/StreamingChart'; import { Grid, useTheme } from '@mui/material'; -import { getChartColor } from '../../../static/js/utils'; +import { getChartColor, toPrettySize } from '../../../static/js/utils'; export const X_AXIS_LENGTH = 75; @@ -253,36 +253,35 @@ export function GraphsWrapper(props) { lineBorderWidth: props.lineBorderWidth, theme: props.theme, }), [props.showTooltip, props.showDataPoints, props.lineBorderWidth, props.theme]); - return ( <> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/>