Permalink
Browse files

fix: add some padding in the vertical direction of chart clip area. C…

…losed #336.
  • Loading branch information...
simaQ committed Sep 19, 2018
1 parent 25386b6 commit ab485d1555448f95f469f0cc52cfe5086ec4c890
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/util/helper.js
@@ -5,6 +5,7 @@ module.exports = {
const end = coord.end;
const width = end.x - start.x;
const height = Math.abs(end.y - start.y);
const margin = 10;
let clip;
if (coord.isPolar) {
const { circleRadius, center, startAngle, endAngle } = coord;
@@ -22,9 +23,9 @@ module.exports = {
clip = new Shape.Rect({
attrs: {
x: start.x,
y: end.y,
y: end.y - margin,
width,
height
height: height + 2 * margin
}
});
}

0 comments on commit ab485d1

Please sign in to comment.