title: How to print flot graph
body: <p>Can any body help me to find out, how to print dynamic graph as example generated by flot.
  I tried this one but it's printing whole page, but I want only graph portion.</p>
  
  <pre><code>function printGraph(){
      $('&lt;img src="../images/button_refresh.png" alt="Print Graph" style=""&gt;').appendTo(controlholder).click(function (e) {                        
          //Canvas2Image.saveAsPNG(document.getElementById('placeholder'));
          //canvas.toDataURL("image/png");
          window.print('placeholder');
      });
  }
  </code></pre>