Skip to content

setAxesLayout() does not allow the user to change the order of axes #24

@wraseman

Description

@wraseman

@joshhjacobson, we don't need to change this before submitting the paper, but with setAxesLayout(), I can now specify which variables are displayed on which chart, but I cannot specify the order that those variables appear.

For instance, say a .csv file has the following columns: a,b,c,d,e,f. Say I want to create two plots the first with b, c, and a (in that order) and f, e, and d (in that order). I would create the following variable:

var layout = {
  0: ['b', 'c', 'a'], 
  1: ['f', 'e', 'd']
}

I would then apply that to a Parasol object as follows:

var ps = Parasol(data)('.parcoords').setAxesLayout(layout)

The resulting plot would be this...
plot 0: a b c
plot 1: d e f

The expected plot would be this....
plot 0: b c a
plot 1: f e d

Currently, the order of these axes appears to be dependent on the order the columns are arranged in the .csv file. It would be more intuitive if the order of the layout variable was taken into account.

Thoughts?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions