Commit Graph

824 Commits (38f7a8c58d30e6be733e67bd538f4ab0f4ae5df8)
 

Author SHA1 Message Date
soenter 38f7a8c58d Improve the performance of large data processing(fix spaces -> tabs) 12 years ago
soenter b9c6359c22 Improve the performance of large data processing 12 years ago
David Schnur e2147c078e Merge pull request #1028 from ilvalle/master
Make dateGenerator publicly accessible.
12 years ago
David Schnur 6d1db085cf Merge pull request #1205 from naknak/issue1204
Proposed fix for issue 1204: only enforce zoom limits in the direction of the merge
12 years ago
David Schnur 4db2939f17 Fix poor wording / typo in comment. 12 years ago
David Schnur 739cefd539 Add sub-pixel adjustments to avoid blurry markings.
Fixes #1210.
12 years ago
David Schnur e5d2237829 Use floor instead of round for better sub-pixel accuracy. 12 years ago
David Schnur 4c86903b99 Logic tweak to save a few bytes. 12 years ago
David Schnur e4c035b37d Updated version number to 0.8.3-alpha. 12 years ago
Neil Katin 8e761580cb Proposed fix for issue 1204: only enforce zoom limits in the direction of the zoom. 13 years ago
David Schnur 39bc058b21 Fixed an error when plotting an empty dataset.
This was accidentally introduced by #1200; we can’t assume that
axis.ticks is an array.
13 years ago
David Schnur 525d46ea8d Removed duplicate NEWS entry. 13 years ago
David Schnur 00e93b6d46 Update version numbers to 0.8.2 final. 13 years ago
David Schnur d436c04c86 Updated NEWS for the 0.8.2 release. 13 years ago
David Schnur 08d5bfadaa Merge pull request #1200 from dnschnur/xaxis-plot-size-fix
Don't add padding when there's no last tick.
13 years ago
David Schnur 968271a458 Merge pull request #1199 from dnschnur/line-height-default-fix
Default lineHeight based on the font size.
13 years ago
David Schnur d973ba22d3 Merge pull request #1198 from dnschnur/axis-grid-fix
Distinguish between the first and innermost axis.
13 years ago
David Schnur 745d24cc79 Default lineHeight based on the font size.
Flot 0.8.0 used the default font size, typically derived from the
placeholder, as the basis for the default lineHeight.  This produced
incorrect results when a font.size was provided explicitly, and it
differed from the placeholder’s CSS size.

Fixed by waiting to default lineHeight until the actual font size has
been resolved.  Fixes #1131.
13 years ago
David Schnur 1650c18442 Don't add padding when there's no last tick.
Flot 0.8 added logic to account for the size of axis tick labels and add
padding around the edges of the plot, to prevent long labels from
sticking out.  But it padded both sides equally, which is incorrect if
the right/top side has no last axis label.

Fixed by allocating padding per-side, and checking whether the last
label would be shown before padding the top or right.  Fixes #1048.
13 years ago
David Schnur edac9e0ed2 Distinguish between the first and innermost axis.
The fix for #1056 caused a regression where grid lines were drawn for
the innermost axes on both sides instead of just the first axis.
Fixed by properly distinguishing the first axis in each direction from
the innermost one on each side.  Fixes #1075.
13 years ago
David Schnur 7fa063e9ba Merge pull request #1130 from thgreasi/master
Added plot.destroy() method, to properly destruct and release memory of plots.
13 years ago
David Schnur 319f4dfe94 Apply fix from #1084 to the inline copy in jquery.flot.js. 13 years ago
David Schnur 65cba84351 Merge pull request #1180 from anthonyryan1/complex-not-bug
:not(selector , selector) isn't actually a valid CSS selector
13 years ago
Anthony Ryan eed38b8d4f :not(selector , selector) isn't actually a valid CSS selector
jQuery's Sizzle is the only thing that this actually works in so jQuery will fail when it passes this directly to querySelectorAll()
13 years ago
David Schnur 403b9532fb Fix line wrapping and grammar. 13 years ago
David Schnur bdd9ceb906 Merge pull request #1182 from Holek/patch-1
Add Ruby examples
13 years ago
Mike Połtyn 2cc2ab8975 typo in ActiveSupport::TimeWithZone example 13 years ago
Mike Połtyn f79e106471 Add Ruby examples 13 years ago
David Schnur c195e836fb Minor cleanup / optimization of font-size defaulting. 13 years ago
David Schnur fd1a02416a Merge pull request #1135 from coldford/master
Fixed a bug where plotting a chart crashes if the placeholder doesn't have a font size
13 years ago
David Schnur 4701726302 Additional style fixes on code merged from #1160. 13 years ago
David Schnur 6008cd7a1d Merge pull request #1160 from luisvsilva/master
Fixed Issue #1159 - Bug Redrawing Legend when using custom container
13 years ago
David Schnur 5d99034e24 Mandate jsDoc comments for file/function headers. 13 years ago
David Schnur 86c82e517b Merge pull request #1177 from exactamedia/labelWidth_bug
fix label's maxWidth calculation
13 years ago
Benjamin Gram 6a9f71f70e fix label's maxWidth calculation 13 years ago
David Schnur 0c2f6e30c2 Slight cleanup / optimization for #1084. 13 years ago
David Schnur 82f28d28e3 Merge pull request #1084 from execjosh/stop-also-at-root-element
Also stop at root when extracting CSS color
13 years ago
Luis Silva 91d254894d Added curly braces to match flot style guidelines 13 years ago
Luis Silva 3041b38d8d Fixed Issue #1159 - Bug Redrawing Legend when using custom container 13 years ago
David Schnur 836c9f15ff Prioritize pull request instructions for clarity. 13 years ago
David Schnur c4aa3cc764 Fix version branch name and clarify spaces v.s. tabs. 13 years ago
execjosh c8c67de8b7 Also stop at root when extracting CSS color
This change adds an additional check for whether the parent element
is `null` or `undefined` in `$.color.extract`.  This can happen when
working with elements that have not yet been added to the DOM under
`<body>`.

Consider the following example pie chart.

    var elm = $("<div />")
      .css({
        width: "240px"
      , height: "320px"
      })
    var data = [
      {label: "One", data: "33"}
    , {label: "Two", data: "33"}
    , {label: "Three", data: "33"}
    ]
    var opts = {
      legend: {
        show: true
      }
    , series: {
        pie: {
          show: true
        }
      }
    }
    $.plot(elm, data, opts)
    elm.appendTo($("body"))

When flot inserts each legend row, it tries to use the same color as
the corresponding graph part, unless it was explicitly specified in
the options.  However, in this example, `$.color.extract` runs into
an unexpected `null` reference because `<body>` is not an ancestor
of `elm`.  Specifically, a `TypeError: Cannot read property
'nodeName' of undefined` would be thrown.
13 years ago
David Schnur 6cd3cb9887 Prevent options from becoming global.
The pie plugin was a little too clever in its use of closures.  In
processDatapoints it set canvas, target, and options for use in other
functions.  Since options was not declared this meant that it became
global.  Pages containing multiple pie plots therefore saw a range of
weird effects resulting from earlier plots receiving some of the options
set by later ones.  Resolves #1128, resolves #1073, resolves #1055.
13 years ago
David Schnur 7deacc9ed1 Clip the pie center only when using offset auto.
If an explicit numeric offset was provided, we should not override it.
The clipping is only meant to apply to the case where the center is
moved to make room for the legend in 'auto' mode, anyway.
13 years ago
Craig Oldford 593cbc5f19 Fixed a bug where plotting a chart crashes if the placeholder doesn't have a font size 13 years ago
David Schnur 3951e0c472 Merge pull request #1127 from brianpeiris/patch-1
Link to PLUGINS.md
13 years ago
Thodoris Greasidis 6f294cedf6 Added plot.destroy() method, to properly destruct and release memory of a plot. 13 years ago
Brian Peiris 4bfa801e31 Link to PLUGINS.md 13 years ago
David Schnur 0360316eb5 Merge pull request #1120 from EricByers/master
Instantiate barLeft/barRight in Bar Highlighting Section
13 years ago
Eric Byers bfc5d2ae7f Instantiating barLeft/barRight 13 years ago