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

Flip axis #290

Closed dehli closed 8 years ago

dehli commented 8 years ago

I messed up my fork, so I did a fresh fork and retried it. The resulting pull request can be seen in #291.

Good morning,

With this pull request, you can call flipAxes() in order to flip the axis without any animation (so you can call it right when it's rendered).

parcoords.flipAxes(["x", "y"]);

The changes to bower.json and package.json are in #287. If that was accepted first, then I think they'll automatically be removed from this one. I accidentally pushed them to my fork's master which is why they're here as well.

Any thoughts about this? I updated the README to show an example. I also added a color function example because I saw a todo for it.

Thanks!

syntagmatic commented 8 years ago

@dehli I added you as a collaborator, go ahead and merge these! Thanks for the contributions.

syntagmatic commented 8 years ago

Also a thought on the transitionTime variable you added to updateAxes. Perhaps that could be passed in as the argument to updateAxes instead of notAnimated? Then the transition time would be configurable, and you could still pass in 0 to transition instantly instead of true.

dehli commented 8 years ago

Thanks a lot @syntagmatic! I like the idea of having transitionTime configurable. I'll go ahead and modify this pull request so that it uses that instead. I'll comment again when I have that new version implemented.

dehli commented 8 years ago

@syntagmatic Hello, I made the changes! All the whitespace diffs are either trailing whitespace or from swapping tabs with spaces. I updated the README as well. Thoughts?

dehli commented 8 years ago

I messed something up on my fork... I'm going to retry this :)