syntagmatic / parallel-coordinates

A d3-based parallel coordinates plot in canvas. This library is no longer actively developed.
http://syntagmatic.github.com/parallel-coordinates/
Other
511 stars 211 forks source link

Added unbrush and brush function to render.js #300

Closed dehli closed 8 years ago

dehli commented 8 years ago

Hi! I've added two functions that can be used to programmatically brush or unbrush elements. What are your thoughts on these implementations? I think it could be something that's useful.

Thanks!

BroHammie commented 8 years ago

@delhi I am wondering if highlight is what you wanted? Programmatically setting the brushed elements like you suggest without setting the brush extents on the axis might cause some user experience issues.

Let me checkout your fork.

dehli commented 8 years ago

@mcwillso Ahh, that's a good point. i was thinking of completely disabling the brush extents and only using these functions. My thought was that I'd have a table like this with checkboxes on each row. Then you could check/uncheck the row to either brush or unbrush it.

If brush extents were enabled, then unbrushing an element could possible modify the brush extent? Maybe brush/unbrush would only work when you have the ability to add multiple brush extents or if they're completely disabled.

Hope this makes sense.

BroHammie commented 8 years ago

@dehli What functionality is missing from the highlight functions to accomplish that?

dehli commented 8 years ago

I liked using unbrush/brush so that the background lines wouldn't show up. Let me further investigate using highlight though. It might be able to work. Thanks!

dehli commented 8 years ago

I'm going to retry this in another branch.