From 95b599332684c146df9ba0a5747aa4e3d4cb3a63 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Mon, 6 May 2013 13:55:48 +1200 Subject: Add pixel padding to the map chart This closes #4. --- js/mv/chart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/mv/chart.js b/js/mv/chart.js index e0421eb..3042acd 100644 --- a/js/mv/chart.js +++ b/js/mv/chart.js @@ -46,9 +46,10 @@ var mv = function(mv) { .valueAccessor(function(d) { return d.value.j + 1; }) /* R */ .radiusValueAccessor(function(d) { return Math.sqrt(d.value.r); }) - .maxBubbleRelativeSize(0.05) + .maxBubbleRelativeSize(0.045) .x(d3.scale.log().domain([1, 100000])) .y(d3.scale.log().domain([1, 300000])) + .axisPixelPadding({left:5, top: 10, right: 15, bottom: 5}) .elasticX(true) .elasticY(true) .renderHorizontalGridLines(true) -- cgit v1.2.3-60-g2f50