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

expose more config for bubble plot #781

Merged
merged 8 commits into from
Apr 20, 2020
Merged

Conversation

rayeaster
Copy link
Contributor

expose more configurable options for bubble plot.

Copy link
Collaborator

@benmccann benmccann left a comment

Choose a reason for hiding this comment

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

It looks like you use tabs where the rest of the code uses spaces and some other formatting that's not consistent. If you run mvn compile one time it will install a git pre-commit hook so that whenever you commit code the code will be automatically formatted and you don't have to worry about formatting

@rayeaster
Copy link
Contributor Author

rayeaster commented Mar 20, 2020

It looks like you use tabs where the rest of the code uses spaces and some other formatting that's not consistent. If you run mvn compile one time it will install a git pre-commit hook so that whenever you commit code the code will be automatically formatted and you don't have to worry about formatting

@benmccann
looks like the format hook does not work for Windows...

I manually format the change in Eclipse using google code format plugin at https://github.com/google/google-java-format

@benmccann benmccann changed the title expose more config for bublle plot expose more config for buble plot Mar 20, 2020
@benmccann benmccann changed the title expose more config for buble plot expose more config for bubble plot Mar 20, 2020
@benmccann
Copy link
Collaborator

Hey @rayeaster I'm not sure the formatting has been updated yet. It still looks like it uses tabs instead of spaces

@rayeaster
Copy link
Contributor Author

rayeaster commented Apr 7, 2020

Hey @rayeaster I'm not sure the formatting has been updated yet. It still looks like it uses tabs instead of spaces

now it should looks good with the google formatter. Thanks for taking time on review

@benmccann
Copy link
Collaborator

Thanks for that!

I'm concerned that the plugin didn't work automatically for you on Windows. It should work there. I saw that they include a few fixes for Windows in some of the recent releases, so I've upgraded it to the latest release: 9d5fce1. Would you be able to test it again and let me know if it works for you now or what error message you get if it doesn't? I don't want other users to run into this problem. Thanks!

@rayeaster
Copy link
Contributor Author

Thanks for that!

I'm concerned that the plugin didn't work automatically for you on Windows. It should work there. I saw that they include a few fixes for Windows in some of the recent releases, so I've upgraded it to the latest release: 9d5fce1. Would you be able to test it again and let me know if it works for you now or what error message you get if it doesn't? I don't want other users to run into this problem. Thanks!

yes, mvn compile works now for me in Windows. Thanks

String title, Table table, String xCol, String yCol, String sizeColumn) {
String title,
Table table,
String xCol,
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems potentially confusing that there's a parameter xCol and xColumn and only one is used. It's not clear which takes precedence. Can you remove one of the two parameters? (same with yCol / yColumn). That would also probably fix the Codacy warning that's being generated

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with the above. I've kept postponing commenting on this PR because it seems to me adding more and more create methods is not a good solution in a way; the other is that this method seems something that could be perhaps private and expose to the users something more clean so they don't have to think about the difference between xCol and xColumn. Might be simple of getting rid of the table argument altogether and just send columns.

Copy link
Contributor Author

@rayeaster rayeaster Apr 19, 2020

Choose a reason for hiding this comment

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

@benmccann @emilianbold I updated PR w.r.t above comments. Thanks for review.

@emilianbold
Copy link
Contributor

This looks good to me, unless this PR gets some other feedback in the following few days I will merge it.

@benmccann
Copy link
Collaborator

Seems fine to me

@emilianbold
Copy link
Contributor

With 2 +1s no need to wait.

@emilianbold emilianbold merged commit 9904ab7 into jtablesaw:master Apr 20, 2020
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.

4 participants