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 212 forks source link

Include axis orientation in dimensions information #325

Open tdudgeon opened 7 years ago

tdudgeon commented 7 years ago

The dimensions() function nicely provides lots of information about charts axes and I'm using this to persist settings between sessions. But I find that the orientation of the axis (min to max or max to min, which is set by double clicking on the header) is not included in this information and so if any axes are inverted this info is not persisted and gets reset.

So:

  1. would it be possible to include this information in future
  2. is there a way to get this info and an event to know when it is changed?
syntagmatic commented 7 years ago

Whatever the flip axis code currently does, it should do this: reverse the domain of the scale on the axis. This information would be persisted as part of the scale, eliminating the need for an array of flipped or inverted axes (or an extra property on the dimension object).

timelyportfolio commented 7 years ago

ref https://github.com/syntagmatic/parallel-coordinates/pull/265#issuecomment-236291990