Skip to content
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

Make data labels consistent #5

Merged
merged 2 commits into from
Oct 10, 2017
Merged

Conversation

pluehne
Copy link
Contributor

@pluehne pluehne commented Oct 9, 2017

The data labels are currently formatted inconsistently. This pull request turns all labels into lowercase (except acronyms etc.) and updates the demo data accordingly.

@pluehne
Copy link
Contributor Author

pluehne commented Oct 10, 2017

I forgot to update the HTML part accordingly. I will fix this!

@pluehne pluehne self-assigned this Oct 10, 2017
@@ -1,4 +1,4 @@
date Pull request usage in % Status usage in %
date pull request usage [%] status usage [%]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this some kind of standard? I think in % reads easier, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that’s how you usually denote the unit of an axis. I think it looks more professional like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also keep in mind that I want to show the unit on the axes directly at some point. Parsing might be easier with this bracket notation.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parsing is a convincing argument! 👍

ROUND(100*COUNT(pr.repository_id)/COUNT(active.repository_id)) AS "Pull request usage in %",
ROUND(100*COUNT(status.repository_id)/COUNT(active.repository_id)) AS "Status usage in %"
ROUND(100*COUNT(pr.repository_id)/COUNT(active.repository_id)) AS "pull request usage [%]",
ROUND(100*COUNT(status.repository_id)/COUNT(active.repository_id)) AS "status usage [%]"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these names used anywhere? just to make sure we don't break anything here ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these are the labels shown in this chart:

screenshot from 2017-10-10 16-27-16

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s the actual results if I see that correctly, and not just intermediate subquery results.

@larsxschneider larsxschneider merged commit 659bd8d into master Oct 10, 2017
@larsxschneider larsxschneider deleted the patrick/consistent-labels branch October 10, 2017 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants