-
Notifications
You must be signed in to change notification settings - Fork 25
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
Added variable height for Admin neighborhood completion histogram and… #3575
Added variable height for Admin neighborhood completion histogram and… #3575
Conversation
… increased font size of names of neighborhoods
…Webpage into 3565-admin-neighborhood-completion-histogram-variable-height
@nschung28 there should definitely be screenshots for this! |
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.
I think that the y-direction is looking good! But I'm now seeing that we have a scroll in the x-direction in the cities that I tested, and that wasn't an issue before. Is it because of the increased font size or something? We should definitely get rid of the x-direction scrolling! Possibly it could help to orient the y-axis labels at a 45 degree angle?
$.getJSON('/adminapi/neighborhoodCompletionRate', function (data) { | ||
// Determine height of the chart based on size of data |
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.
A reminder to end comments with a period, as per style guide 🙃
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.
And instead of "size of data", it might be more clear to say "the number of neighborhoods"
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.
Sorry about that! I'll go back and fix this.
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.
I'll also take a look into the x-axis scrolling issue and get those changes pushed asap!
$.getJSON('/adminapi/neighborhoodCompletionRate', function (data) { | ||
// Determine height of the chart based on size of data | ||
var chartHeight = data.length * 30; |
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.
Might as well just do var chartHeight = 150 + 30 * data.length;
…Webpage into 3565-admin-neighborhood-completion-histogram-variable-height
… to remove overflow on the x-axis, and edited comments to be more descriptive
… to remove overflow on the x-axis, and edited comments to be more descriptive
…eight' of https://github.com/ProjectSidewalk/SidewalkWebpage into 3565-admin-neighborhood-completion-histogram-variable-height
… to remove overflow on the x-axis, and edited comments to be more descriptive
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.
Looks good, just one small change!
…Webpage into 3565-admin-neighborhood-completion-histogram-variable-height
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 getting back to this, looks good!
Resolves #3565
Made neighborhood completion histogram height variable depending on the dataset and also increased the font size of the neighborhoods on the y-axis.
Testing instructions
Things to check before submitting the PR