|
|
|
|
@ -860,7 +860,7 @@
|
|
|
|
|
axis.labelHeight = h;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function computeAxisBoxFirstPhase(axis) {
|
|
|
|
|
function allocateAxisBoxFirstPhase(axis) {
|
|
|
|
|
// find the bounding box of the axis by looking at label
|
|
|
|
|
// widths/heights and ticks, make room by diminishing the
|
|
|
|
|
// plotOffset
|
|
|
|
|
@ -929,7 +929,7 @@
|
|
|
|
|
axis.innermost = innermost;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function computeAxisBoxSecondPhase(axis) {
|
|
|
|
|
function allocateAxisBoxSecondPhase(axis) {
|
|
|
|
|
// set remaining bounding box coordinates
|
|
|
|
|
if (axis.direction == "x") {
|
|
|
|
|
axis.box.left = plotOffset.left;
|
|
|
|
|
@ -973,7 +973,7 @@
|
|
|
|
|
// with all dimensions in house, we can compute the
|
|
|
|
|
// axis boxes, start from the outside (reverse order)
|
|
|
|
|
for (i = allocatedAxes.length - 1; i >= 0; --i)
|
|
|
|
|
computeAxisBoxFirstPhase(allocatedAxes[i]);
|
|
|
|
|
allocateAxisBoxFirstPhase(allocatedAxes[i]);
|
|
|
|
|
|
|
|
|
|
// make sure we've got enough space for things that
|
|
|
|
|
// might stick out
|
|
|
|
|
@ -997,7 +997,7 @@
|
|
|
|
|
|
|
|
|
|
if (options.grid.show) {
|
|
|
|
|
$.each(allocatedAxes, function (_, axis) {
|
|
|
|
|
computeAxisBoxSecondPhase(axis);
|
|
|
|
|
allocateAxisBoxSecondPhase(axis);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
insertAxisLabels();
|
|
|
|
|
|