Commit 05fea785 authored by Evgeny's avatar Evgeny

Fix margin issue

parent 22e03ae3
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href=".grunt/grunt-contrib-jasmine/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href=".grunt/grunt-contrib-jasmine/jasmine.css">
<link rel="stylesheet" type="text/css" href="c3.css">
</head>
<body>
<script src=".grunt/grunt-contrib-jasmine/es5-shim.js"></script>
<script src=".grunt/grunt-contrib-jasmine/jasmine.js"></script>
<script src=".grunt/grunt-contrib-jasmine/jasmine-html.js"></script>
<script src=".grunt/grunt-contrib-jasmine/json2.js"></script>
<script src=".grunt/grunt-contrib-jasmine/boot.js"></script>
<script src="bower_components/d3/d3.js"></script>
<script src="bower_components/async-buffer/index.js"></script>
<script src="spec/c3-helper.js"></script>
<script src="c3.js"></script>
<script src="spec/api.chart-spec.js"></script>
<script src="spec/api.color-spec.js"></script>
<script src="spec/api.data-spec.js"></script>
<script src="spec/api.grid-spec.js"></script>
<script src="spec/api.load-spec.js"></script>
<script src="spec/api.zoom-spec.js"></script>
<script src="spec/arc-spec.js"></script>
<script src="spec/axis-spec.js"></script>
<script src="spec/c3-spec.js"></script>
<script src="spec/class-spec.js"></script>
<script src="spec/core-spec.js"></script>
<script src="spec/data-spec.js"></script>
<script src="spec/domain-spec.js"></script>
<script src="spec/grid-spec.js"></script>
<script src="spec/interaction-spec.js"></script>
<script src="spec/legend-spec.js"></script>
<script src="spec/markers-spec.js"></script>
<script src="spec/shape.bar-spec.js"></script>
<script src="spec/shape.line-spec.js"></script>
<script src="spec/stacked-spec.js"></script>
<script src="spec/tooltip-spec.js"></script>
<script src="spec/type-spec.js"></script>
<script src="spec/zoom-spec.js"></script>
<script src=".grunt/grunt-contrib-jasmine/reporter.js"></script>
</body>
</html>
......@@ -5152,11 +5152,11 @@
// Excel shortens ticks the way so they don't take more than half of all chart
if($$.config.axis_rotated){
var widthPadding = margin.left + margin.right;
return ($$.getCurrentWidth() - widthPadding) / 2;
var widthPadding = -60;
return ($$.getCurrentWidth() + widthPadding) / 2;
} else {
var heightPadding = margin.top + margin.bottom;
return ($$.getCurrentHeight() - heightPadding) / 2;
var heightPadding = -60;
return ($$.getCurrentHeight() + heightPadding) / 2;
}
};
......
......@@ -517,11 +517,11 @@ c3_chart_internal_fn.getSizeCoef = function(){
// Excel shortens ticks the way so they don't take more than half of all chart
if($$.config.axis_rotated){
var widthPadding = margin.left + margin.right;
return ($$.getCurrentWidth() - widthPadding) / 2;
var widthPadding = -60;
return ($$.getCurrentWidth() + widthPadding) / 2;
} else {
var heightPadding = margin.top + margin.bottom;
return ($$.getCurrentHeight() - heightPadding) / 2;
var heightPadding = -60;
return ($$.getCurrentHeight() + heightPadding) / 2;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment