Brushing d3 v5 with scalePoint

36 views
Skip to first unread message

Mike Tung

unread,
Jun 4, 2018, 2:58:08 PM6/4/18
to d3-js
Hi,

I'm trying to brush on a 2-d plot of fruits (y-axis) vs dates (x-axis) and am currently stuck trying to figure out how to get precise selection on the y-axis.

My issue is that when I try to brush the y-axis and I choose an empty spot the region belongs to a given fruit say 'apple' and thus would select all the apples with the correct x-axis dates, but would have wrong y-axis (white space not the data point).

Has anyone found a good solution for this?
Reply all
Reply to author
Forward
0 new messages