From 041330b54f0a1fc27605aa8fdcf129e17c7eeec2 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Tue, 27 Jun 2023 10:41:09 -0400 Subject: [PATCH] flip axes on sparks and metrics --- ui/src/console/detail/account/EnvironmentsTab.js | 4 ++-- ui/src/console/detail/environment/SharesTab.js | 4 ++-- ui/src/console/detail/share/ShareDetail.js | 4 ++-- ui/src/console/metrics/MetricsView.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/src/console/detail/account/EnvironmentsTab.js b/ui/src/console/detail/account/EnvironmentsTab.js index 9da48ce1..4141365b 100644 --- a/ui/src/console/detail/account/EnvironmentsTab.js +++ b/ui/src/console/detail/account/EnvironmentsTab.js @@ -47,8 +47,8 @@ const EnvironmentsTab = (props) => { cell: row => { return - v.rx ? v.rx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} /> - v.tx ? v.tx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} /> + v.tx ? v.tx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} /> + v.rx ? v.rx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} /> } diff --git a/ui/src/console/detail/environment/SharesTab.js b/ui/src/console/detail/environment/SharesTab.js index d47c026b..301ed8a3 100644 --- a/ui/src/console/detail/environment/SharesTab.js +++ b/ui/src/console/detail/environment/SharesTab.js @@ -48,8 +48,8 @@ const SharesTab = (props) => { cell: row => { return - v.rx ? v.rx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} /> - v.tx ? v.tx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} /> + v.tx ? v.tx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} /> + v.rx ? v.rx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} /> } diff --git a/ui/src/console/detail/share/ShareDetail.js b/ui/src/console/detail/share/ShareDetail.js index b440db9b..d2c56d5a 100644 --- a/ui/src/console/detail/share/ShareDetail.js +++ b/ui/src/console/detail/share/ShareDetail.js @@ -43,8 +43,8 @@ const ShareDetail = (props) => { activity: row => ( - v.rx ? v.rx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} /> - v.tx ? v.tx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} /> + v.tx ? v.tx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} /> + v.rx ? v.rx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} /> ), diff --git a/ui/src/console/metrics/MetricsView.js b/ui/src/console/metrics/MetricsView.js index 5085f878..f6b99b3c 100644 --- a/ui/src/console/metrics/MetricsView.js +++ b/ui/src/console/metrics/MetricsView.js @@ -50,8 +50,8 @@ const MetricsGraph = (props) => { v.timestamp} scale={"time"} tickFormatter={(v) => moment(v).format("MMM DD") } style={{ fontSize: '75%'}}/> bytesToSize(v)} style={{ fontSize: '75%' }}/> - v.tx ? v.tx : 0} stackId={"1"} /> - v.rx ? v.rx : 0} stackId={"1"} /> + v.tx ? v.tx : 0} stackId={"1"} /> + v.rx ? v.rx : 0} stackId={"1"} />