Commit Graph

224 Commits (850c3cc630f4bc3929226564c15d32e1a7c06dec)

Author SHA1 Message Date
David Schnur df8c7ea520 Clarified version of master branch code. 14 years ago
Julien Thomas 2e89207432 Fix makeCanvas() for IE after Retina feature introduced in 179d2e1 14 years ago
Julien Thomas 3b26866e06 Cleanup indentation in getPixelRatio() 14 years ago
Julien Thomas 7b867f8c1f Whitespace cleanup in resizeCanvas() 14 years ago
David Schnur c202303a29 Use a slightly better-performing string cast. 14 years ago
Shad Downey b52df3ca52 Cast tick label to string prior to `replace` call
In the edge case that an actual integer, or other non-string, is passed as a label, it must be cast to String before `replace` can safely be called.
14 years ago
David Schnur 5c978cddca Fixed an error when native canvas isn't available.
The recent changes to add retina support included a call to getContext
made before excanvas/flashcanvas had a chance to register their hooks;
fixed by moving that code up a few lines.
14 years ago
David Schnur 7001dc559a Cleaned up the commit from pull request #52.
- Minor code cleanup and comments describing how we use pixel ratios.
14 years ago
David Schnur ec99d31c8e Merge pull request #52 from olivierguerriat/master
Basic retina display support
14 years ago
David Schnur 3e7a177ae8 Merge pull request #63 from dnschnur/better-legend-colors
Auto-generation of legend colors no longer results in only white and black above a certain number of series.
14 years ago
David Schnur 6eaeabcd1d Improve generation of color variations.
As the size of the variation increases, the resulting colors approach
white and black. To avoid this we now reset the variation when it gets
too large. This results in repeated colors, but that's much better than
a list full of whites and blacks.
14 years ago
David Schnur c62cb30720 Optimize and tidy up calculation of neededColors. 14 years ago
David Schnur 974bd0510e Skip entries whose labelFormatter returns null. 14 years ago
David Schnur 906321723c Merge pull request #38 from eriwen/master
Allow custom highlight color
14 years ago
David Schnur 6fa524205b Ensure that axes always have a tickGenerator.
Check whether an axis has a generator, rather than a mode. In most cases
this is functionally the same, but it also handles the case where an
axis mode plug-in specifies only the formatter, and expects to use the
default base-10 generator.
14 years ago
David Schnur 375c06aa78 Added an option to control legend sort order.
Added a legend 'sorted' option that allows sorting of legend entries
independent of series order.  It accepts either null/false, true,
'ascending', 'descending' or a comparator function.
14 years ago
David Schnur 65b05c6e2f Merge pull request #55 from yaelelmatad/issue-709-deprecation-msg
Throw error when flot.time plugin is missing.
14 years ago
David Schnur ca372620e0 Fixed mistake in code from pull request #50
- The faster toFixed alternative now returns a string, as tickFormatter
is expected to do
14 years ago
yaelelmatad 8beb199e8d Edited request for Ticket 709, Deprecation Mesg
We changed the === to == and removed the typeof operator.  We also changed the tabs to spaces.
14 years ago
yaelelmatad 4e5c800c6a Throw error when flot.time plugin is missing.
Fixes issues 709 on google code.
14 years ago
olivier 179d2e1d39 Basic retina display support (including the new MacBook Pro) 14 years ago
Clemens Stolle 2581a4b990 much faster default tickFormatter()
- toFixed() is sloooow
http://jsperf.com/tofixed-vs-factor
14 years ago
Mark Côté 854292986d Moved time-series functionality into a separate plug-in and incorporated
time zones.
14 years ago
David Schnur 360e57dc50 Minor cleanup on recently-merged code, for consistency. 14 years ago
David Schnur e7634c64b8 Merge pull request #5 from smashedpumpkin/fix-issue-520
Added a 'right' option for bar alignment.
14 years ago
David Schnur f83cacf5eb Merge pull request #24 from ichthyos/master
Throw IE- and Safari-friendly error upon finding invalid dimensions.
14 years ago
David Schnur 0258271d7c Prevent i from being declared global in extractRange (issue 627) 14 years ago
David Schnur 07598593e1 Added a grid.margin option 14 years ago
David Schnur 4ee1e04e19 Added processOffset and drawBackground hooks 14 years ago
Eric Wendelin 46e1221f17 Allowing custom highlight color 14 years ago
Eddie Kay 2ffbd4a6df Throw IE- and Safari-friendly error upon finding invalid dimensions. 15 years ago
Ole Laursen 93c7c941f4 New categories plugin with support for plotting categories/textual
data directly; also tick generators now get the whole axis rather than
just min/max
15 years ago
Ole Laursen b52f74e5c5 Merge pull request #6 from smashedpumpkin/fix-fonts
Fix bug with font of the axis labels when multiple font-families are specified
15 years ago
Ole Laursen fcd4bce6f9 Fix bug when both label width and height is set (fix by Ara
Anjargolian)
15 years ago
Ole Laursen 97c0fc820a Fix bug with formats in the data processor (reported by Peter Hull) 15 years ago
Ole Laursen e55b5b4d61 Prefix canvas classes with "flot-" to prevent clashes, mostly a
problem with .overlay (reported by bcraysie/Bob Cravens, issue 540)
15 years ago
Ole Laursen 2c8fc1a08f Fix missing ; (reported by getify, issue 518) 15 years ago
Ole Laursen 5a60696886 Fix calculation of plot offset to round values to prevent another source of blurry borders 15 years ago
Ole Laursen d60f0d47bb Previous commit missed some changes, oops 15 years ago
Ole Laursen f6cebd3f13 Update excanvas and remove previous eventholder work-around to fix hover/click bug in IE 8 (test case by Ara Anjargolian); add support for setting the redraw overlay period and set it to 60 frames/s 15 years ago
Ole Laursen 9f060ec8e1 Round measured label dimensions to fix problem with blurry grid lines 15 years ago
Michael Mayer a35b7d0fea Corrected inline comment 15 years ago
Michael Mayer 82ac1aecb0 Fixes the font of the axis labels by removing single quotes in CSS font property (otherwise a list of fonts is interpreted as a single font name or already quoted font names are quoted twice 15 years ago
Michael Mayer 40d886f9c9 Implemented option to right-align a bar and updated API docs 15 years ago
Ole Laursen 431a603bec Fix bug with new label drawing code when an axis is missing the ticks,
fix missing semicolon
15 years ago
Ole Laursen 89bbfef517 Switch to using canvas text to draw the axis labels, fix a problem with axis box calculations 15 years ago
Ole Laursen aea8e9fb63 Bump version number for the 0.7 release 15 years ago
olau@iola.dk 284dfa13e4 Update colorhelpers plugin to avoid dying when trying to parse an
invalid string (reported by cadavor, issue 483)


git-svn-id: https://flot.googlecode.com/svn/trunk@323 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 4e02781692 Refactor replot behaviour so Flot tries to reuse the existing canvas,
adding shutdown() methods to the plot (based on patch by Ryley
Breiddal, issue 269). This prevents a memory leak in Chrome and
hopefully makes replotting faster for those who are using $.plot
instead of .setData()/.draw(). Also update jQuery to 1.5.1 to prevent
IE leaks fixed some time ago in jQuery.


git-svn-id: https://flot.googlecode.com/svn/trunk@317 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk e47b43159b Fix bug in infinity handling
git-svn-id: https://flot.googlecode.com/svn/trunk@316 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago