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

How to make brushes stick to ticks #270

Closed jfourment closed 8 years ago

jfourment commented 8 years ago

Hi all,

Is there any way to make the brush to only use ticks and subticks as increments instead of pixels? If I define axis with 0.1 ticks for example, I want to be able to only move the brush along these ticks. I don't want to be able to define a range [0.12 - 0.63 ] for example.

Cheers

syntagmatic commented 8 years ago

This isn't a solution, which probably requires modifying the core library, but here's an example of snapping to a D3 scale:

http://bl.ocks.org/mbostock/6232537

jfourment commented 8 years ago

So it's called snapping ;-) I will look into that. Thanks!