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

flipAxisAndUpdatePCP() does not update dimensions.tickvalues #327

Open sephali opened 7 years ago

sephali commented 7 years ago

If dimension tickvalues are explicitly set by external code . User defined tick values goes off when double clicked on Axis (Flip Axis) .

In flipAxisAndUpdatePCP(dimension) , below line of code

d3.select(this.parentElement) .transition() .duration(.animationTime) .call(axis.scale(.dimensions[dimension].yscale));

should be replaced with

d3.select(this.parentElement)
  .transition()
  .duration(__.animationTime).call( pc.applyAxisConfig(axis, __.dimensions[dimension]));

This can set all tick details set externally.

timelyportfolio commented 7 years ago

ref #325 and #265