1. 29 Oct, 2013 1 commit
  2. 14 Oct, 2013 2 commits
  3. 23 Sep, 2013 2 commits
  4. 21 Sep, 2013 1 commit
    • execjosh's avatar
      Also stop at root when extracting CSS color · c8c67de8
      execjosh authored
      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.
      c8c67de8
  5. 15 Sep, 2013 2 commits
    • David Schnur's avatar
      Prevent options from becoming global. · 6cd3cb98
      David Schnur authored
      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.
      6cd3cb98
    • David Schnur's avatar
      Clip the pie center only when using offset auto. · 7deacc9e
      David Schnur authored
      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.
      7deacc9e
  6. 11 Sep, 2013 1 commit
  7. 04 Sep, 2013 1 commit
  8. 01 Sep, 2013 1 commit
  9. 29 Aug, 2013 1 commit
  10. 09 Aug, 2013 1 commit
    • David Schnur's avatar
      Fixed autoscale check when using null x/y values. · ce3bdb08
      David Schnur authored
      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.
      ce3bdb08
  11. 22 Jul, 2013 8 commits
  12. 19 Jul, 2013 4 commits
  13. 03 Jul, 2013 4 commits
  14. 15 Jun, 2013 1 commit
  15. 31 May, 2013 2 commits
  16. 30 May, 2013 2 commits
  17. 29 May, 2013 2 commits
  18. 28 May, 2013 1 commit
  19. 27 May, 2013 3 commits