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

created histogram and scatter chart with scatter point selection per bin #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

LB0ge
Copy link
Contributor

@LB0ge LB0ge commented Apr 20, 2023

No description provided.

Copy link
Collaborator

@ddragula ddragula 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 and works very well! I just made two minor remarks below.

Comment on lines 45 to 48
} else {
// if bin is already selected, unselect
bin.select();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since you call bin.select() twice at the beginning of two blocks (in if and in else), consider whether it would not be better to call it once, before the if statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes as per your comment. Also needed to change the if condition (from !bin.selected to bin.selected).

Comment on lines 33 to 36
// if bin is NOT already selected, select bin and associated scatter points
bin.select();
bin.setState('select');

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you don't need to call bin.setState('select') if you have already called bin.select().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed!

Copy link
Collaborator

@ddragula ddragula left a comment

Choose a reason for hiding this comment

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

Thanks for the changes!

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.

2 participants