Commit Graph

773 Commits (ce3bdb0886b62890c3c1f697f901b263b73d49a6)
 

Author SHA1 Message Date
David Schnur ce3bdb0886 Fixed autoscale check when using null x/y values.
The autoscale check was too broad; it included the case where autoscale
was undefined.  This resulted in axes not expanding correctly when
coordinates at the end of a series had null x or y values.  Fixed by
narrowing the check to !== false; resolves #1095.
13 years ago
David Schnur e2b9cf8ce0 Remove the unused offset parameter.
The drawBar method was always called with an offset of zero, and I see
no other way in which it is currently used. Resolves #382.
13 years ago
David Schnur a286f044ef Draw bars using fillRect instead of paths.
This is up to 2x faster and appears to work around issues in Chrome's
canvas implementation that sometimes result in bars not being filled.
Resolves #915.
13 years ago
David Schnur f42e4eddfd Merge pull request #1074 from cleroux/master
Fixing Issue 686: Tooltip bug
13 years ago
David Schnur fca41ad5cd Added BeWiBu to credits for the right-aligned bar fix. 13 years ago
David Schnur 6dfc581d27 Update inline jquery-resize to the latest version.
Resolves #997 and #1081.
13 years ago
David Schnur ef23fd401a Updated credits for right-aligned bar fix. 13 years ago
David Schnur 6a39c5ba11 Always simply default to center alignment.
Throwing an exception was overkill for such a limited-use option; we
should reserve those, and the file-size bytes they consume, for serious
cases only.
13 years ago
David Schnur 2ce1139cf7 Fix highlights for right-aligned bars.
Support for right-aligned bars was never added to the hover or highlight
code; only the actual bar drawing. We need to replicate that in the
other two places as well.

Resolves #1093.
13 years ago
David Schnur d94c1b75bc Updated credits for the flot-tickrotor fix. 13 years ago
David Schnur df32626007 Added a comment for posterity. 13 years ago
David Schnur 14651f7f79 Merge pull request #1091 from markrcote/master
Always remove the tick text in drawAxisLabels() regardless of axis settings
13 years ago
Mark Côté 5a0372159a Always remove the tick text in drawAxisLabels() regardless of axis settings.
Since a plot may be redrawn after removing ticks or hiding the axis,
the tick text should always be removed before determining if there are
ticks to draw.
13 years ago
David Schnur 81926d033d Merge pull request #1086 from dentarg/patch-2
Fix typo in API.md
13 years ago
David Schnur 32e9575080 Merge pull request #1085 from dentarg/patch-1
Change [olson] to http link
13 years ago
Patrik Ragnarsson 488fbc8df5 Fix typo in API.md 13 years ago
Patrik Ragnarsson 13cedbc897 Change [olson] to http link
GitHub doesn't render ftp links for some reason ([security?][1]).

[1]: https://github.com/mojombo/jekyll/issues/373#issuecomment-15025728
13 years ago
Cedric Le Roux caf1c7c9a5 Fixing Issue 686: Tooltip bug 13 years ago
David Schnur b074bde4aa Updated credits for API table of contents. 13 years ago
David Schnur a4c4163109 Merge pull request #1064 from brianpeiris/patch-1
Add table of contents
13 years ago
Brian Peiris 2b901841b2 Move TOC below main title and make it horizontal 13 years ago
Brian Peiris d777b2e795 Add table of contents
The reference document is quite large; a table of contents would help readers navigate and find topics. (TOC was generated via [DocToc](http://doctoc.herokuapp.com/))
13 years ago
David Schnur 1d4bee99fb Fix incorrect line termination. 13 years ago
David Schnur 11ed6a2909 Enable tooltips and coordinates by default.
Lots of people ask about implementing tooltips; hopefully enabling it by
default will help them find it more easily.
13 years ago
David Schnur 7efb3876fa Add missing semicolon. 13 years ago
David Schnur 2c4c39f472 Revert changes committed accidentally.
These changes were used to test the axis innermost property fix, and
should not have been committed.
13 years ago
David Schnur b0f864bd67 Updated credits for the axis innermost fix. 13 years ago
David Schnur 1f9e3ba730 Fix incorrect check for the innermost axis.
An axis is innermost when it's first among those not just in its
direction, but also on its side, i.e. left/right, of the plot. So the
inArray check should be against the samePosition list, not all.
Resolves #1056.
13 years ago
David Schnur ed3f14897e Always set the axis innermost property.
It doesn't make sense to calculate the innermost property only when no
tickLength has been provided; the two have little to do with each other.
13 years ago
David Schnur 7f94a133f9 Updated version number to 0.8.2-alpha. 13 years ago
David Schnur 7f5f90384e Updated version number to 0.8.1 final. 13 years ago
David Schnur fd6fdf3c0a Updated credits for various fixes in 0.8.1. 13 years ago
David Schnur defe651617 Allow the same text in multiple locations.
Resolves #1032.  Previously it was impossible to draw the same text,
with the same style, in two different locations, because the second
would end up using the first's cache entry, which only ended up moving
the element to a new position.

Now each cache entry holds a list of positions at which the text
appears, creating clones of the original element for each position
beyond the first.
13 years ago
David Schnur 77a4b8647b Trigger an overlay refresh when drawing the plot.
Resolves #1030.  The performance impact should be low, and is the
correct thing to do in just about all cases where a plot is being
redrawn.
13 years ago
David Schnur 5fb61a92c8 Respect autoscale when nullifying points.
Resolves #1033.
13 years ago
David Schnur 2347c9a28d Merge pull request #1039 from marcelometal/master
Removed executable permissions from jquery.flot.selection.js
13 years ago
Marcelo Jorge Vieira b224b1ca7e Removed executable permissions from jquery.flot.selection.js 13 years ago
David Schnur 571d86e936 Restore 0.7's maximum width for x-axis labels.
Flot 0.7 calculated x-axis label dimensions by assigning each label a
fixed width, then measuring the height as determined by the browser.  A
side-effect of this technique is that x-axis label divs received a fixed
width.  The rewrite of the text system in 0.8 accidentally removed this
feature; this patch restores it.
13 years ago
David Schnur e8ef708494 Added a width parameter to control text wrapping.
The optional width parameter establishes a maximum width for the text's
bounding box, forcing it to wrap when it reaches that size.
13 years ago
David Schnur 7c6993e77b Fix a regression when no options are provided. 13 years ago
David Schnur f12481559d Merge pull request #1024 from nmorel/master
Regression on pie plugin in the data format allowed
13 years ago
Nicolas Morel 14f694f9b9 Fixed regression on pie plugin on data format allowed (without recursion) 13 years ago
David Schnur 355b85506d Merge pull request #1034 from goorpy/master
Patch for colors array, issue #1031
13 years ago
goorpy c20370ab57 Add comment and desired structure to colors patch
Per request from dnschnur (https://github.com/flot/flot/pull/1034#issuecomment-17119203), I have: 
- Added a comment explaining the purpose of the new check/override
- Changed the structure to match preferred standard structure
13 years ago
David Schnur 33565aa5d5 Merge pull request #1035 from brianpeiris/patch-2
Add links between API.md and README.md
13 years ago
David Schnur 0fdb499654 Merge pull request #1027 from leewillis77/master
Remove $.isNumeric() for compat with jQuery < 1.7. Fixes #1026
13 years ago
Brian Peiris 321f3a49ce Add link to API.md 13 years ago
Brian Peiris 3f0d693151 Add link to README.md 13 years ago
goorpy fccc8a6e21 Override colors array after extend in parseOptions
(Realted to flot issue #1031: https://github.com/flot/flot/issues/1031)

Currently, if the user declares a custom color palette with less than 5 colors (say, n), $.extend(true, options, opts) only modifies the first n colors of the default palette and leaves the last 5-n in place. When the number of series is >n, colors are used that are not part of user-defined palette, contrary to description of colors array in API.

This line overrides the extended colors array and replaces it with exactly the user-defined colors array, when present. Afterwards, the user color palette is respected by the auto tinting/shading system for when there are more series than colors.
13 years ago
Lee Willis 5fe3646ab0 Remove $.isNumeric() for compat with jQuery < 1.7. Fixes #1026 13 years ago