From 4922558d0c147be46f3ed85f4c7e2b4b080dcaf4 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Thu, 6 Jun 2013 11:36:01 +0900 Subject: [PATCH] Remove margin top --- c3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c3.js b/c3.js index cb13c5d..0aaa131 100644 --- a/c3.js +++ b/c3.js @@ -147,7 +147,7 @@ top2 = __size_height - __subchart_size_height - legendHeight, bottom2 = 20 + legendHeight, top3 = __size_height - legendHeight, - margin = {top: 10, right: right, bottom: bottom, left: 40}, + margin = {top: 0, right: right, bottom: bottom, left: 40}, margin2 = {top: top2, right: 20, bottom: bottom2, left: 40}, margin3 = {top: top3, right: 20, bottom: 0, left: 40}, width = __size_width - margin.left - margin.right, @@ -160,7 +160,7 @@ var xMin = __axis_rotated ? 10 : 0, xMax = __axis_rotated ? height : width, yMin = __axis_rotated ? 0 : height, - yMax = __axis_rotated ? width : 10 + yMax = __axis_rotated ? width : 1 var x = ((isTimeSeries) ? d3.time.scale() : d3.scale.linear()).range([xMin, xMax]), y = d3.scale.linear().range([yMin, yMax]),