Skip to content

Commit 6fd4625

Browse files
committed
Quantize sites. Fixes d3#1578.
1 parent 4b36e85 commit 6fd4625

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

d3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5146,8 +5146,8 @@ d3 = function() {
51465146
function sites(data) {
51475147
return data.map(function(d, i) {
51485148
return {
5149-
x: fx(d, i),
5150-
y: fy(d, i),
5149+
x: Math.round(fx(d, i) / ε) * ε,
5150+
y: Math.round(fy(d, i) / ε) * ε,
51515151
i: i
51525152
};
51535153
});

0 commit comments

Comments
 (0)