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

Adding caret icons to max/min for column chart #5

Merged
merged 4 commits into from
Sep 29, 2017

Conversation

Jbcampbe
Copy link
Contributor

@Jbcampbe Jbcampbe commented Sep 11, 2017

screen shot 2017-09-11 at 7 45 54 pm

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",
Copy link
Contributor Author

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

Copy link
Contributor

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.

@JackieChiles
Copy link
Contributor

Regarding ember-font-awesome you should be able to add it to devDependencies without issue.

.html(() => '&#xf0d8')
.attr('text-anchor', 'middle')
.attr('class', 'caret-icon')
.attr('x', +b.getAttribute('x') + (b.getAttribute('width') / 2))
Copy link
Contributor

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 +

Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Collaborator

@maiseyh maiseyh left a 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.

@maiseyh
Copy link
Collaborator

maiseyh commented Sep 28, 2017

Here's an example where we lose the caret and the number itself.

screen shot 2017-09-28 at 1 34 16 pm

@Jbcampbe
Copy link
Contributor Author

Jbcampbe commented Sep 28, 2017

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.

@Jbcampbe
Copy link
Contributor Author

Jbcampbe commented Sep 29, 2017

@maiseyh fixed.
screen shot 2017-09-29 at 10 58 53 am

@Jbcampbe Jbcampbe merged commit d38f47e into master Sep 29, 2017
@Jbcampbe Jbcampbe deleted the show-icon-on-max-min branch October 13, 2017 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants