-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adding caret icons to max/min for column chart #5
Conversation
Jbcampbe
commented
Sep 11, 2017
•
edited
Loading
edited
package.json
Outdated
@@ -42,7 +42,7 @@ | |||
"ember-cli-sri": "^2.1.0", | |||
"ember-cli-test-loader": "^1.1.0", | |||
"ember-cli-uglify": "^1.2.0", | |||
"ember-data": "^2.10.0", | |||
"ember-data": "2.14.10", |
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.
[email protected] has a regression. Pinned the version to 2.14.10 and added package-lock if we want it. If we would rather not have a lock I can remove it
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.
You can just pull out ember-data entirely. It's not used in this project.
Regarding ember-font-awesome you should be able to add it to |
.html(() => '') | ||
.attr('text-anchor', 'middle') | ||
.attr('class', 'caret-icon') | ||
.attr('x', +b.getAttribute('x') + (b.getAttribute('width') / 2)) |
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.
(Trivial) missing a space after the first +
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.
Same in the other areas where this line is present.
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.
When I put a space in it failed the eslint. Should I change the eslint rule?
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.
Oh actually I read this line wrong, I didn't realize that it's a leading +
. I'm not sure why that's there, maybe to coerce it to a Number type? Probably can leave it as is then.
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 like if we just have a max and no min, we lose the caret as well as the number itself.
oh yes @maiseyh I meant to bring that up. I asked Bradley what he wanted to happen when all values are the same. He told me in that case don't display anything. |
@maiseyh fixed. |