Commit Graph

545 Commits (d7c58b59f3be06ed1069e28fd1aa2776e6367eb6)
 

Author SHA1 Message Date
David Schnur b362df896c Added contribution and code style guidelines.
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.
14 years ago
David Schnur dd7793b7dc Demonstrate use of object as borderWidth. 14 years ago
David Schnur 701f2f6e41 Style cleanup and converting spaces to tabs. 14 years ago
David Schnur 04f4ac25b8 Fix wrapping to avoid markdown mis-interpretation. 14 years ago
David Schnur 1ab6a53d57 Updated credits for #880 border fixes. 14 years ago
David Schnur 4fc5340d5c Merge pull request #880 from kswedberg/border-object-fix
Fix setting border color/width as an object.
14 years ago
Karl Swedberg 198a601513 Fix setting border width/color when object.
* 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()
14 years ago
Karl Swedberg 40189e6c0f General linting. 14 years ago
Karl Swedberg 01b1c8a923 Remove trailing white space. 14 years ago
David Schnur 559a39ee62 Throw a nice exception when Excanvas is missing. 14 years ago
David Schnur af1c888512 Updated credits for the recent getSelection fix. 14 years ago
David Schnur e9079c3e43 Merge pull request #852 from ncb000gt/master
Return null from getSelection if there's no selection.
14 years ago
David Schnur baaec0d08a Updated credits for several recent fixes. 14 years ago
David Schnur 81591ee463 Merge pull request #879 from dnschnur/pie-plugin-fixes
Fixed pie plugin 100% slice issues on IE7/8.
14 years ago
David Schnur eac2d075f0 Removed extra comma that was causing IE7 errors. 14 years ago
David Schnur 7ee31a6099 Added work-around for the Excanvas 100% arc bug.
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.
14 years ago
David Schnur 8525ea7526 Added an extra test case to the pie example. 14 years ago
David Schnur 6aa3696e59 Further style cleanup. 14 years ago
David Schnur 0a601d037b Cleaned up whitespace, braces and strings. 14 years ago
David Schnur 2f7cfcb5d0 Merge pull request #878 from dnschnur/tick-decimals-fix
Fix tickDecimals option broken by pull #50.
14 years ago
David Schnur 0e9936051d Fixed axis.tickDecimals that were broken by #50.
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.
14 years ago
David Schnur 985cccae6a Add tickDecimals to the setting-options example.
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.
14 years ago
David Schnur db83cd0c1e Merge pull request #877 from dnschnur/jquery-1.8-support
Tested, verified and fixed support for jQuery 1.8.
14 years ago
David Schnur 5951dcb03c Ensure that pie's legendWidth remains numeric.
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.
14 years ago
David Schnur 4e38170f2a Updated the bundled jQuery to version 1.8.3. 14 years ago
David Schnur e480313224 Updated credits for retina pie fixes. 14 years ago
David Schnur a5b254108d Added copyright and MIT license header. 14 years ago
David Schnur e10b38bfcc Re-expose formatDate on the plot object. 14 years ago
David Schnur f8064ca7ea Further whitespace and braces cleanup. 14 years ago
David Schnur 6a02cab9ac Cleaned up tabs and whitespace. 14 years ago
David Schnur 0945a1cb5d Added a manifest for the new jQuery plugins-site. 14 years ago
Lau Bech Lauritzen a175706711 Use placeholder dimensions instead og canvas dimensions in calculations which fixes draw bug after introducing Retina support in Flot core 14 years ago
David Schnur 82eb3fd782 Updated credits for #79 threshold variables. 14 years ago
David Schnur 8c385e770b Merge pull request #79 from lasseebert/master
Removed implicit global variables in threshold plugin.
14 years ago
David Schnur 332aa5592c Updated credits for getPixelRatio improvements. 14 years ago
David Schnur e29145e509 Merge pull request #862 from maimairel/patch-1
Cleaner and portable function to get pixelratio.
14 years ago
David Schnur 1baabf5fdf Added missing semicolons found via jsLint. 14 years ago
maimairel 5de35ae639 Cleaner and portable function to get pixelratio
This patch is intended the make getPixelRatio function portable and cleaner :)

Previous indentation issue has also been fixed.

Thanks :)
14 years ago
David Schnur 1262aa3918 Updated credits for #855 grid borders. 14 years ago
David Schnur c857351d67 Merge pull request #855 from ara818/flexible_grid_borders2
Support different border color and widths for each side of the chart.
14 years ago
David Schnur 95030b9e84 Merge pull request #857 from steverob/patch-1
Edited grammatical error.
14 years ago
Steve Robinson f85cc10e6d Edited grammatical error 14 years ago
ara818 5fcb64ff20 Support different border color, widths for each side of the chart 14 years ago
David Schnur 4fd15472de Updated credits for #851 global variables fix.
Added Szymon Barglowski, who originally reported the fmt variable.
14 years ago
Nick Campbell 54ce0b2e75 !selection.show => return null from getSelection
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>
14 years ago
David Schnur 2d15fdc225 Added credits for #851 global variables fix. 14 years ago
David Schnur 30946cb91d Merge pull request #851 from ncb000gt/master
Prevent insertSteps and fmt from becoming global.
14 years ago
Nick Campbell 414e7dec14 fmt hoisted to global.
`fmt` was being hoisted as a global variable.

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
14 years ago
Nick Campbell 0d2c9ec714 insertSteps was being hoisted to global.
Locally declared insertSteps by adding var s.t. it would no longer be a
global variable.

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
14 years ago
Lasse Dahl Ebert 850c3cc630 Converted implicit global variables to local variables 14 years ago