Scatterplot smaller, card

This commit is contained in:
Colin Megill
2018-02-28 09:55:09 -08:00
parent e3248fe34a
commit 1825f289b7
3 changed files with 24 additions and 17 deletions
@@ -23,8 +23,8 @@ const setupScatterplot = (
.attr("height", height * devicePixelRatio)
.style("width", width + "px")
.style("height", height + "px")
.style("margin-left", 10 + 3 + "px") /* magic number: this seems to be visually correct when it is equal to the amount axis is translated by plus or minus... a little? */
.style("margin-top", margin.top + margin.bottom - 2 + "px")
.style("margin-left", margin.left + 1 + "px") /* magic number: this seems to be visually correct when it is equal to the amount axis is translated by plus or minus... a little? */
.style("margin-top", margin.top + "px")
var ctx = canvas.node().getContext("2d");
ctx.globalCompositeOperation = 'darken';