Commit Graph

799 Commits (eed38b8d4fe37521b3751bd6234d50226d8477f7)
 

Author SHA1 Message Date
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
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
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