While Flot's codebase is currently a mish-mash of styles, we'd like to
move toward a unified style based on the jQuery core style guidelines.
Migration of existing code is scheduled for the 0.9 release.
* If either color or width is object, normalize the other to object
* Only draw each border if its width is greater than 0
* Set strokeStyle and lineWidth _before_ calling ctx.beginPath()
When a slice equals (or comes close enough that it is equal in
floating-point representation) 100% of the pie, it was no longer drawn
by Excanvas. This is because of a long-standing issue where VML won't
draw an arc whose begin and end are the same. Rather than some hack,
like adding/subtracting a small value, we'll simply draw two arcs for
every slice, with each covering half of the slice's angle.
Pull request #50 inadvertently broke the behavior of axis.tickDecimals,
which previously added precision up to the given value. The broken code
effectively ignored the setting for values with less precision. This
fix brings back the old behavior.
It's useful to include the tickDecimals option in one of our examples,
so it's easier to test across versions. The setting-options example is
the logical place to put it.
Substitute zero when .width() returns undefined, since legendWidth is
used in numeric calculations that break when it is undefined. This
became a problem with the release of jQuery 1.8.0, which returns
undefined instead of null when an element doesn't exist. This was fixed
in 1.8.1, but this is good practice anyway.
If we've called `clearSelection`, then calling `getSelection` shouldn't
return the old selection values. When calling `getSelection` before a
selection is made, `null` is returned. It seemed appropriate to do the
same if `selection.show` was falsy.
Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>