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 isBrushed #297

Open
Schamper opened this issue Apr 13, 2016 · 5 comments
Open

Expose isBrushed #297

Schamper opened this issue Apr 13, 2016 · 5 comments

Comments

@Schamper
Copy link

I feel like this function is useful enough to warrant public availability, especially since I can't seem to find any other solid method of determining if a brush is currently active.

function isBrushed() {

@syntagmatic
Copy link
Owner

This would be useful. It would also be useful to get an object containing the current brush state (all active brushes, rather than having to use this test for each one).

@dehli
Copy link
Collaborator

dehli commented Jul 11, 2016

I'm trying to work on a way to get all of the current brushes (and also a way to set them). That way if you wanted to save what's brushed (or programmatically set the brush extents) you could do that.

@BroHammie
Copy link
Collaborator

@dehli this is already possible if you call brushExtents with or with out parameters. Let me know if you need an example.

@dehli
Copy link
Collaborator

dehli commented Jul 11, 2016

Thanks @mcwillso. I just discovered that functionality, so I'm trying to figure out how to use it. I'll let you know if I can't figure it out :)

@dehli
Copy link
Collaborator

dehli commented Jul 11, 2016

Actually, I'm having some troubles with this. Hopefully it's an easy fix :)

I'm retrieving the extents by calling:

var extents = parcoords.brushExtents();

It returns the appropriate object: { Year: [1999, 2005] }

However, if I then try to call parcoords.brushExtents({ Year: [1999, 2005] });, the same extents aren't produced. Am I missing a step? I also tried adding parcoords.renderBrushed(); afterwards to see if that was needed.

It's because I was using an old version of the parallel coordinates, oops. Thanks!

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

No branches or pull requests

4 participants