-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change: [M3-7735] - Improve Linode Graph X Axis Labels when viewing historic data #10186
change: [M3-7735] - Improve Linode Graph X Axis Labels when viewing historic data #10186
Conversation
Coverage Report: ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed that I am seeing days instead of hours on the x-axis now when looking at historical (Last 30 Days) data, but the title of our internal ticket does mention fixing a discrepancy with units in the tooltip.
I am still seeing that for the IPv6 Network graph with b/s
and units are in kb/s
.
Edit: Same with the IPv4 Network graph with Private In/Out. Maybe we had a different ticket for this that I'm thinking of?
Recharts flag:
No feature flag:
@@ -115,6 +115,8 @@ const LinodeSummary: React.FC<Props> = (props) => { | |||
debouncedRefetchLinodeStats(); | |||
}, [windowWidth, windowHeight, debouncedRefetchLinodeStats]); | |||
|
|||
const xAxisTickFormat = isLast24Hours ? 'hh a' : 'LLL dd'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the const here. Readability would be further improved with a short comment about what the tick formats mean in English.
A seperate ticket M3-7758 was created for the networking units issue. I fixed the title of M3-7735! @mjac0bs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified X Axis labels show days when a time period is greater than 24 hours 📈
packages/manager/src/features/Linodes/LinodesDetail/LinodeSummary/LinodeSummary.tsx
Outdated
Show resolved
Hide resolved
…ary/LinodeSummary.tsx Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Description 📝
Updates the Linode Graph's X Axis to show days instead of hours on the x-axis when the user select a longer time period 📈
Preview 📷
How to test 🧪
Prerequisites
recharts
flag onVerification steps
As an Author I have considered 🤔