Commit Graph

388 Commits (b6d392b25bf91ee1d7ee3348620adfc06366b1c9)

Author SHA1 Message Date
David Schnur 4e9c0c0b53 Ensure that axis lines align with their ticks.
Add an extra pixel to ensure that the lines cleanly join both top and
bottom ticks.  Also apply the sub-pixel offset only in the necessary
direction, so the lines don't start a pixel off from where they should.
13 years ago
David Schnur 0594a49158 Update version number to 0.8.0-beta. 13 years ago
David Schnur 3cd7a51026 Axis and tick color options now make more sense.
The axis color now controls the color of the axis line, instead of its
ticks and labels, while the tickColor controls the tick color. This
makes a little more sense and provides the minor feature of being able
to change the axis line color separately from that of its ticks.  Pull
request #917 ought to be easier to merge now, too.
13 years ago
David Schnur a0b05a4bab Switch to semantic versioning. 13 years ago
David Schnur 53ce9ad123 Move canvas reuse up into the Canvas constructor.
This allows us to reuse the canvas elements without having to retain the
rest of the Canvas object, which should really be reset when the plot is
reconstructed.  It's also a little simpler, and the Canvas constructor
just feels like the right place for this code.
13 years ago
martinqt 1e6c45bd95 Update js files 13 years ago
David Schnur 60ed6b2963 Merge pull request #935 from dnschnur/canvas-text
Moved canvas text support into a plugin.
13 years ago
David Schnur 0df6bc4a66 Add back legacy styles for tick label containers.
These styles are deprecated, but we'll continue to use them until the
release of version 1.0.0, for backwards-compatibility.
13 years ago
David Schnur bb0acac9c7 Give tick labels the 'tickLabel' class.
The tickLabel class is deprecated in favor of flot-tick-label, but we'll
continue to use it until the release of version 1.0.0, for
backwards-compatibility.
13 years ago
David Schnur e354071741 Minor cleanup of text-style color defaults. 13 years ago
David Schnur ab6e4a95bd Skip NaN values in axis min/max calculations.
Resolves #489.
13 years ago
David Schnur a2dd0645aa Break text styles into their own cache tier.
Previously the cache was divided only by layer, with entries keyed on a
string built from the text and style.  Now the style has its own tier in
the cache, i.e. layers > styles > text > info.

This introduces some complexity, since the nested for loops are ugly,
but at the same time we avoid having to create the cache-key strings.
More importantly it solves the problem of uniqueness that exists when we
try to join strings that may contain arbitrary text.  It also allows a
further optimization in the canvas plugin, which can now set text style
and color just once per distinct style, instead of with every string.
13 years ago
David Schnur 77e50b175d Allow text to be divided between multiple layers.
This lets users 'namespace' text more naturally, i.e. placing x-axis
labels in a different container from y-axis labels, providing more
flexibility when it comes to styling and interactivity.

Internally the text cache now has a second tier: layers > text > info.
13 years ago
David Schnur 4203a66eba Add text to its actual layer before measuring it.
The getTextInfo method previously added new text to the top-level
container when measuring it.  Now it adds the text to the text layer,
just as it will be when rendered, so that parent-child CSS rules can
resolve correctly.

This also avoids having to safe a reference to the top-level container,
since it wasn't used anywhere else.
13 years ago
David Schnur e7de873524 Factor out text layer creation to its own method.
This sets the stage for allowing the use of multiple layers.
13 years ago
David Schnur a036aa962a Reverse cache key order to ensure uniqueness.
Also switch from dashes to pipes, and remove the angle for now, since we
don't currently support rotated text.
13 years ago
David Schnur a9a31644c7 Replace drawText with add and remove methods.
Every cache element now contains the actual text element instead of just
its HTML, plus a flag indicating whether it is visible.  The addText and
removeText methods control the state of this flag, and the render method
uses it to manage elements within the text container.  So where we
previously used drawText to actually render text, now we add each string
once, then let the render method take care of drawing them as necessary.

This dramatically improves performance by eliminating the need to clear
and re-populate HTML text on every drawing cycle.  Since the elements
are now static between add/remove calls, this also allows users to add
interactivity, as they could in 0.7.  Finally, it eliminates the need
for a separate 'hot' cache.

I also removed the unnecessary 'dimensions' object; it's easier and
faster to store the width and height at the top level of the info
object.
13 years ago
David Schnur 5d7086968f Simplify creation of the cached element. 13 years ago
David Schnur ff0e5c1b1a Move cached hasOwnProperty to the top level. 13 years ago
David Schnur 73baa2b9e3 Cache actual elements instead of buffering HTML.
This significantly improves performance, since we already create the
elements when measuring them, and that effort is now no longer wasted.
We must take care to detach, rather than remove, when clearing the text
layer, so we can add the elements back later if necessary.
13 years ago
David Schnur 51e14f6a27 Added a 'reverse' sorted option.
This orders the legend entries in reverse order of their series.
13 years ago
David Schnur 49cce02be9 Add the plot function as a chainable property.
Resolves #734 and #816.
13 years ago
David Schnur ad823de836 Merge pull request #937 from jamiehs/issue-842-cherry-pick
Fix inability to set the point lineWidth to 0.
13 years ago
David Schnur 98b6361aa9 Preserve canvas elements on re-plot.
Since the Canvas .text object is jQuery-wrapped, it was not preserved as
expected when clearing the canvas of junk.  I've replaced the selection
with one based on element classes.
13 years ago
David Schnur d2642e80cf Fixed missing/superfluous semicolons. 13 years ago
David Schnur c36b344677 Replace axis.font with options.font.
Instead of giving the axis its own font property, we simply look at its
options, where the font comes from in the first place.  A separate
property is unnecessary and inconsistent with the way other axis options
are handled.
13 years ago
Sean Jordan f6f764eb2d Fixing bug with default tickFormatter
Change-Id: If53fdb1bf9563834c58cf2b569d0e1a6a7155eb8
13 years ago
Jamie Hamel-Smith c833511431 Adding a fix for the inability to set the point line width to 0. It's a bit of a hack, but it seems like an acceptable workaround. 13 years ago
David Schnur a0529ee8b1 Moved canvas tick rendering into a plugin.
The base implementation uses the new drawText and getTextInfo methods to
draw text in HTML.  Canvas rendering has been moved to overrides of
these methods within the canvas-render plugin.
13 years ago
David Schnur 3b2d43bf65 Provide a way for plugins to override classes. 13 years ago
David Schnur edc2bbd992 Added methods to draw and measure text.
These methods provide a common way to draw HTML text above a canvas.

The getTextInfo method generates div HTML for text with a given font
style/class and angle, measures the element's dimensions, and saves
everything in a cache.  The drawText method takes the resulting entry,
finishes generating the inline styles necessary to position the div, and
adds the result to a buffer.  The render method dumps the buffer into an
overlay and expires unused cache entries.
13 years ago
David Schnur a9be4d559d Abstract-out canvas creation into an object.
Moved canvas creation and size management into a new Canvas class.

This is the first step towards a more object-oriented architecture.
Since we create multiple canvases, and have to maintain several
module-global variables to track their properties, they are the ideal
place to start.

This commit also removes sizing code that was duplicated between
makeCanvas and resizeCanvas.
13 years ago
David Schnur f66c9ae3d6 Renamed the 'canvas' variable to 'surface'.
Renaming the variable gives us room to create a new class called Canvas.
13 years ago
hizhengfu 3c1d04cbd1 Correction calculation error margin
Correction calculation error margin
13 years ago
David Schnur f06fe931ea Merge pull request #861 from thecountofzero/master
Ensure that tickSize updates on subsequent calls to setupGrid.
13 years ago
David Schnur 29476b8911 Merge pull request #911 from dnschnur/series-zero-option
Added a series 'zero' option to control automatic scaling.
13 years ago
David Schnur 6412dafc6e Restrict zero to bars and filled lines only.
This also includes a tweak to zero's default.  Previously zero only
received a value if lines were visible; now it always receives a value,
matching the behavior of other contextual options.
13 years ago
David Schnur 3c0bcefc5a Fixed jQuery 1.2.6 mouseleave issue from #920.
Use bind, rather than .mouseleave, because we officially still support
jQuery 1.2.6, which doesn't define a shortcut for mouseenter or
mouseleave.  This was a bug/oversight that was fixed somewhere around
1.3.x.  We can return to using .mouseleave when we drop support for
1.2.6.
13 years ago
David Schnur b6924a96d9 Update auto-scaling to support the zero option.
Added a format option 'autoscale' that controls whether the given point
is considered when determining an automatic scale.

The lines & bars 'zero' option controls whether autoscale is set on the
dummy point that is inserted to create the series lower-bound.
13 years ago
David Schnur 126cb072fc Added a 'zero' option for lines and bars.
Area and bar plots normally use a minimum of zero, since their purpose
is to show size, and using an auto-scaled minimum distorts the plot's
meaning.  But this behavior is undesirable in cases where the plot type
is used in more of a decorative sense.

The zero option provides a way to control this behavior.  It defauls to
true for bars and filled lines.
13 years ago
David Schnur d7c58b59f3 Enforce left-to-right canvas layout orientation.
When the placeholder has (or inherits) the HTML 'dir' attribute or CSS
'direction' we get unexpected results from text metrics, resulting in
visual glitches on the axes.

The suggested solution in #716 was to set ltr on the placeholder, but
this introduces its own problems, since the user probably *does* expect
rtl on items like the legend.  So we'll instead set ltr only on the
canvases.

We should review this behavior at some point; rtl is something we need
to handle, not work around.  It also needs to be kept in mind as we move
canvas-text into a plugin.  But for now this solution at least ensures
consistent behavior.
13 years ago
David Schnur a6414cac60 Prevent color generation with all fixed indexes.
As pointed out in a comment to #832, initializing maxIndex to zero
results in the creation of a single color even when all indexes are
fixed.
13 years ago
David Schnur 88e0567b46 Tweak comparison order for clarity. 13 years ago
David Schnur 61c1cad92f Clarify comments describing color generation. 13 years ago
Anthony Ryan a4ac13085c Document the affected versions of opera, and replace $.browser.opera with a line to detect only affected versions 13 years ago
Anthony Ryan 97d862a4b2 Specify the precise version of IE referenced in this problem 13 years ago
David Schnur f6b279ce34 Fixed a logic error in series color generation.
This addresses #906, the case where a fixed color index on a series
results in the color generator producing one color less than is actually
needed.
13 years ago
David Schnur 3640b939e2 Updated the public plot.version property. 14 years ago
David Schnur 4880f45da0 Merge pull request #899 from arpancj/master
Issue: #890: Fix broken behavior for interacting demo
14 years ago
David Schnur e85a190ea9 Removed unnecessary canvas skipPositioning flag.
The primary canvas uses position: absolute while the overlay canvas does
not.  This can cause the two to get out of alignment in rare cases when
floating elements are placed near the plot placeholder.  There doesn't
appear to be any reason why the overlay can't also be
absolutely-positioned, so I've just removed the flag entirely.
14 years ago
Arpan Chinta 91f6b6ae40 Fix broken behavior for interacting demo 14 years ago
David Schnur 9e21074d82 Updated license headers for #805.
Added licensing information to each file's headers, along with some
minor cleanup.
14 years ago
David Schnur 8b99640553 Declare variables that should have been local. 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 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 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
Mike Malamud a0b1552d4b Fix for issue #860, Recalculate tickSize on updates 14 years ago
ara818 5fcb64ff20 Support different border color, widths for each side of the chart 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
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
olau@iola.dk fbe4273b6e New options.grid.minBorderMargin for adjusting the minimum margin provided around the border (based on patch by corani, issue 188)
git-svn-id: https://flot.googlecode.com/svn/trunk@315 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 23316cfa63 Fix problem with unaligned ticks and hover/click events caused by
padding on the placeholder by hardcoding the placeholder padding to 0
(reported by adityadineshsaxena, Matt Sommer, Daniel Atos and some
other people, issue 301)


git-svn-id: https://flot.googlecode.com/svn/trunk@314 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk cd91f432d1 Remove getAxis function, nothing seems to use it and it is of dubious
quality anyway after the setupGrid refactoring


git-svn-id: https://flot.googlecode.com/svn/trunk@311 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 2ab5ce87f5 Remove usage of getUsedAxes(), after the refactor of setupGrid, it's
no longer needed, and possibly misleading - hopefully, nobody else has
used it yet; also refactor getAxes() and remove annoying
backwards-compatibility stuff in it, it probably didn't help anything
and prevents one from using getAxes() in the obvious way


git-svn-id: https://flot.googlecode.com/svn/trunk@310 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 470456c598 Added $.plot.version with the Flot version as a string and made sure
the version comment at the top of jquery.flot.js is included in the
minified output (suggested by arockinit)


git-svn-id: https://flot.googlecode.com/svn/trunk@308 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 1e050212c1 Fix bug in picking items when transform/inverseTransform is in use
(reported by Ofri Raviv, and patches and analysis by Jan and Tom
Paton, issue 334 and 467)


git-svn-id: https://flot.googlecode.com/svn/trunk@307 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk a86bad27dd Rename computeAxisBox... to allocateAxisBox
git-svn-id: https://flot.googlecode.com/svn/trunk@304 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 6e99181b33 Simplify transformation helper function slightly and fix issue 263
that prevented inverse transforms from working correctly.


git-svn-id: https://flot.googlecode.com/svn/trunk@303 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 47821c713b Refactor the axis dimension calculations slightly to avoid the whole
implicit assumptions madness and support turning axes on and off
(suggested by Time Tuominen in issue 466), this adds axis.show and
axis.reserveSpace - still need to figure out what to do about the
public axis-snarfing API and get it documented.


git-svn-id: https://flot.googlecode.com/svn/trunk@302 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 4c0a2a4977 Fix blunder in recent backwards compat fix, patch by adrianyee
git-svn-id: https://flot.googlecode.com/svn/trunk@296 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 2bb9c579e5 Fix bug in backwards-compatibility code for dual axes (reported by mystic414)
git-svn-id: https://flot.googlecode.com/svn/trunk@295 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 70e36134d6 Add support for Infinity/-Infinity by hacking it into +/- Number.MAX_VALUE (closes issue 444)
git-svn-id: https://flot.googlecode.com/svn/trunk@294 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk c97bf1eb71 Use = null rather that delete to clear out excanvas context (problem
reported by ryleyb)


git-svn-id: https://flot.googlecode.com/svn/trunk@291 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 3dd4b4aab7 Fixes for tickless axes plus change autoscaleMargin to avoid snapping
to ticks if it's 0, based on patches by Ara Anjargolian


git-svn-id: https://flot.googlecode.com/svn/trunk@290 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk a493cc4997 Remove excanvas init hack, it's not needed with the bundled version of excanvas
git-svn-id: https://flot.googlecode.com/svn/trunk@289 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 8e82c4cef1 Fix bug with backwards compatibility for shadowSize = 0 (report and suggested fix by aspinak)
git-svn-id: https://flot.googlecode.com/svn/trunk@285 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk cc031e0a86 Fix possible excanvas leak (report and suggested fix by tom9729)
git-svn-id: https://flot.googlecode.com/svn/trunk@284 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk a1f56d5bd9 Fix bug with using aboveData with a background (reported by amitayd)
git-svn-id: https://flot.googlecode.com/svn/trunk@283 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk bcf9df2fff Listen for mouseleave events and fire a plothover event with empty item when it occurs
git-svn-id: https://flot.googlecode.com/svn/trunk@281 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 53ba01acca Fix bug with highlight that caused it to update too often
git-svn-id: https://flot.googlecode.com/svn/trunk@280 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk df745474c3 Add compatibility with Flashcanvas (issue 368) and remove dubious octx.stroke() call
git-svn-id: https://flot.googlecode.com/svn/trunk@278 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 48adc6aaf1 Use closure trick to make inline colorhelpers plugin respect jQuery.noConflict(true), renaming the global jQuery object (reported by Nick Stielau)
git-svn-id: https://flot.googlecode.com/svn/trunk@275 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 56bd76f19c Fix bug with parsing data for plugins that have single point data
elements (patch by vpapp1)


git-svn-id: https://flot.googlecode.com/svn/trunk@271 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 59b1afed91 Fix bug when position is 0 in p2c/axisToCanvasCoords
git-svn-id: https://flot.googlecode.com/svn/trunk@267 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk ffca77abcf Fix bug in backwards compatibility code for multi-axis support, reported by
mystic414 (issue 393)


git-svn-id: https://flot.googlecode.com/svn/trunk@265 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 8031f5fdf3 Support for customizing the point type through a callback when plotting points and new symbol plugin with some predefined point types (sponsored by Utility Data Corporation)
git-svn-id: https://flot.googlecode.com/svn/trunk@263 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk f192ea9cb8 Fix bug with points plotting using line width from lines rather than points
git-svn-id: https://flot.googlecode.com/svn/trunk@262 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 3765bb4e09 Remove never-triggered condition
git-svn-id: https://flot.googlecode.com/svn/trunk@260 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 9b3ef35d34 Make sure measurement labels are deleted, round widths of labels, fix
recently introduced border margin calculation bug


git-svn-id: https://flot.googlecode.com/svn/trunk@259 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 8155391044 Some cleanup in tick generation code, added support for aligning axes
with alignTicksWithAxis


git-svn-id: https://flot.googlecode.com/svn/trunk@258 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 947c166385 Support for coloring axes, and automatic tick color selection
git-svn-id: https://flot.googlecode.com/svn/trunk@257 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 467b95455e Put tickLabel class on tick labels (regression)
git-svn-id: https://flot.googlecode.com/svn/trunk@254 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk bad53abc5a Revamped internals to add support for extra axes, not just dual (sponsored by Flight Data Services)
git-svn-id: https://flot.googlecode.com/svn/trunk@251 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 479fa27850 Fixed problem with turning off bar outline (issue 253, fix by Jordi Castells)
git-svn-id: https://flot.googlecode.com/svn/trunk@245 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk 5d68d11b67 Fix a couple of undeclared variables, noticed by Daniel Farina
git-svn-id: https://flot.googlecode.com/svn/trunk@244 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk c61c120a78 Added drawSeries hook
git-svn-id: https://flot.googlecode.com/svn/trunk@242 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago