javascript - D3.brush scatterplot matrix, not changing appearance of map -


i'm implementing brushing dragging cursor on bubbles of scatter plot matrix select bubbles, , change style class of bubbles in visualization.

this brush code:

function brush(p) {     var e = brush.extent();     var selected = {};      scatter.selectall(".dot").classed("selected", function(d) {          var sel = e[0][0] > tx || tx > e[1][0]       || e[0][1] > ty || ty > e[1][1];         selected[d['id']] = sel;          return sel;     });     map.selectall(".dot").classed("selected", function(d) {        return selected[d['id']];     }); } 

i've narrowed down event feed d3.brush.extent. i'm logging extent

i've narrowed down strange values extent. i'm logging

e[0][0]: 1366664511350.9492 e[1][0]: 1366664511395.322

e[0][0]: 3781.8181818181815 e[0][1]: 14618.18181818182

clearly, events being recorded incorrectly somehow.

my current implementation at

cs.usfca.edu/~jakutay/visualizations/salesview2.html


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -