Introduces an unofficial work-around for the behavior introduced in
0.8.0, where we reserve extra space for the first and last tick labels.
This makes it impossible for plots to span the full width of their
container.
This work-around overloads the reserveSpace option, which normally only
applies when show = false. Now, if show = true and reserveSpace =
false, we skip the step that allocates extra space for labels.
We’ll introduce a proper solution in 0.9, but this should provide a way
for users to move forward in the meantime.
The fix for an unnecessary gap on the right of the chart turned out to
break text wrapping for ticks that were legitimately in that position.
Fixes#1283.
Using x2axis/y2axis to add a second axis is deprecated, but we
currently still support it. Historically we’ve just extended the first
axis’s options with the second’s, but that is a problem when the first
has min/max and the second doesn’t; it will inherit an inappropriate
min/max.
We might want to consider not extending at all, but since that’s a
bigger change we’ll for now just ensure that if no min/max is
specified, we respect that.
Fixes#1228.
Flot 0.8 still officially supports jQuery 1.2.6 and higher, so we can’t
assume the existence of detach. This will go away in 0.9, where the
minimum jQuery version is 1.4.4.
Fixes#1240.
Flot 0.8.0 used the default font size, typically derived from the
placeholder, as the basis for the default lineHeight. This produced
incorrect results when a font.size was provided explicitly, and it
differed from the placeholder’s CSS size.
Fixed by waiting to default lineHeight until the actual font size has
been resolved. Fixes#1131.
Flot 0.8 added logic to account for the size of axis tick labels and add
padding around the edges of the plot, to prevent long labels from
sticking out. But it padded both sides equally, which is incorrect if
the right/top side has no last axis label.
Fixed by allocating padding per-side, and checking whether the last
label would be shown before padding the top or right. Fixes#1048.
The fix for #1056 caused a regression where grid lines were drawn for
the innermost axes on both sides instead of just the first axis.
Fixed by properly distinguishing the first axis in each direction from
the innermost one on each side. Fixes#1075.