title: Is there a way to export Flot chart to a pdf?
body: <p>I looked into many places <a href="https://code.google.com/p/flot/issues/detail?id=175" rel="nofollow noreferrer">flot issue</a>, <a href="http://socialcompare.com/en/comparison/javascript-graphs-and-charts-libraries" rel="nofollow noreferrer">chart comparision</a>, <a href="https://stackoverflow.com/a/14674795/801116">stackoverflow ans</a> and none of them syas it is fully possible. Going through <a href="https://stackoverflow.com/a/22678134/801116">this answer</a> it seems it is possible using <strong>html2canvas</strong>, but is there a angularjs plugin for it?</p>
  
  <p>Can anyone help me find a way to export flot chart to pdf? </p>
  
  <p><a href="http://plnkr.co/edit/hoHyeRRuuP0QGhAVBA3l?p=preview" rel="nofollow noreferrer">Plunker example</a> which has my chart and button handler for export.</p>
  
  <p>Just for the sake of plunker link I am showing my click handler</p>
  
  <pre><code>&lt;button type="button" class="btn btn-default btn-xs" ng-click="exportPdf($event)"&gt;Export to PDF&lt;/button&gt;
  
  $scope.exportPdf = function($event) {
    alert("Export to pdf click handler");
  }
  </code></pre>