diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 567abad7c18a..99b5c6f4dac8 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -493,6 +493,7 @@ const DASHBOARD_CACHE_TTL = { ioOptions: 60 * 60 * 1000, }; const monitorChartGrid = { left: 65, right: 65, bottom: '20%' }; +const monitorChartLegend = { top: 0, bottom: 'auto' }; const monitorTagsStyle = { left: `${monitorChartGrid.left}px`, right: `${monitorChartGrid.right}px`, @@ -515,6 +516,7 @@ const loadIOChartOption = () => ({ }, ], grid: monitorChartGrid, + legend: monitorChartLegend, formatStr: 'MB', }); const loadNetworkChartOption = () => ({ @@ -530,6 +532,7 @@ const loadNetworkChartOption = () => ({ }, ], grid: monitorChartGrid, + legend: monitorChartLegend, formatStr: 'KB/s', }); @@ -1157,6 +1160,7 @@ onBeforeUnmount(() => {