1. Chris Leonello
  2. jqplot
Issue #601 new

Canvas re-use issues with multiple graphs

Anonymous created an issue

When having multiple graphs on a page, then going through a javascript sequence like "g1.destroy(); g2.destroy(); g1=$.jqplot(...); g2=$.jqplot(...)", where the second set of graphs has fewer series than the first set, oddities start happening. Mouse-over on the first graph suddenly blanks series (or grid) on the second graph. Similar in IE9, Chrome, Firefox. Traced it to an issue with CanvasManager; not letting it re-use any canvases, and bluntly doing $('canvas').remove() instead to free resources, makes the problem go away.

Comments (2)

  1. Log in to comment