Open antz29 opened 8 years ago
I've seen this happening a while ago and thought I fixed it, are you using the latest version on github?
I noticed this issue as well. The thing is that sortDimensions() doesn't really change the order of the dimensions just sets the index attribute. The drawing in single_path() then loops through dimensions in the wrong order. I could fix the issue by sorting the dimensions by index before drawing the lines but this leads to poor performance.
Here is my quick and dirty fix: https://github.com/murphy66/parallel-coordinates/commit/17052221b6d67145df744f10f52c889a9574289e
I'm building a visulisation of a PCA model and the ability to re-order the axis is fantastic here, but it seems that it's not behaving as I would expect.
Here I have some test data displaying a PCA model with 4 clusters.
When I move axis 1 to the end, it's as if it stay 'attached' to axis 2, so the lines are drawn over the top of the others.
This isn't how the examples behave, and certainly not what I was expecting, so I presume it's me doing something stupid but I have compared the examples and can't see what I'm doing wrong here.
The data I'm rendering looks like this:
What could I be doing wrong here?