Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improve padding for labels with angle > PI/2

  • Loading branch information...
commit 4006d3f22e8786ddeca48c6d2d6bc7ebd3cfaa7c 1 parent 0fb1695
@sievlev sievlev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.flot.js
View
2  jquery.flot.js
@@ -1734,7 +1734,7 @@
x = plotOffset.left + axis.p2c(tick.v);
y = box.top + 2 * box.padding;
if(angle > Math.PI/2) {
- x -= line.width;
+ x -= line.width - 2* box.padding;
y += line.height - 2* box.padding;
angle += Math.PI;
}
Please sign in to comment.
Something went wrong with that request. Please try again.