-
Notifications
You must be signed in to change notification settings - Fork 385
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
web/storagenode: chart y and x axis reworked #3179
web/storagenode: chart y and x axis reworked #3179
Conversation
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.
Consider moving numbers to const. Rest LGTM
const middleDateValue = valuesLength / 2; | ||
const isDateValueInMiddleInEvenAmount = index === (middleDateValue - 1); | ||
const isDateValueInMiddleInNotEvenAmount = index === (Math.floor(middleDateValue)); | ||
const isAfterEighthDayOfTheMonth = valuesLength > 8 && valuesLength <= 31; |
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.
This numbers should be moved to const with meaning description.
Avoid using magic numbers
@@ -7,6 +7,34 @@ import { Component, Prop, Vue, Watch } from 'vue-property-decorator'; | |||
|
|||
import { ChartData } from '@/app/types/chartData'; | |||
|
|||
class DayShowingConditions { | |||
public day: string; |
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.
private
@@ -7,6 +7,34 @@ import { Component, Prop, Vue, Watch } from 'vue-property-decorator'; | |||
|
|||
import { ChartData } from '@/app/types/chartData'; | |||
|
|||
class DayShowingConditions { | |||
public day: string; | |||
public daysArray: string[]; |
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.
private
class DayShowingConditions { | ||
public day: string; | ||
public daysArray: string[]; | ||
public middleDateValue: number; |
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.
readonly
public day: string; | ||
public daysArray: string[]; | ||
public middleDateValue: number; | ||
public isDateValueFirstOrLast: boolean; |
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.
readonly
public daysArray: string[]; | ||
public middleDateValue: number; | ||
public isDateValueFirstOrLast: boolean; | ||
public isAfterEighthDayOfTheMonth: boolean; |
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.
readonly
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.
LGTM
What: number of x axis values reduced;
month added to x axis;
added y axis;
added label above y axis;
y axis dashed grid lines added.
Why: SNOboard enhancements
Please describe the tests:
Please describe the performance impact:
Code Review Checklist (to be filled out by reviewer)