title: Chart from chart.js to pdf
body: <p>I have seen a lot of posts describing how you can use <code>chart.js</code> to create a graph using <code>canvas</code> and to then save the <code>canvas</code> to png, and import it into a <code>pdf</code>. This is fine but what if you want to bypass the on screen part and go straight to a pdf document and include the image?</p>
  
  <p>For example, I may have two buttons, one that opens the chart on screen using <code>canvas</code>. This page could then handle the chart saving and importing into the pdf without a problem. The other button opens the <code>pdf</code> directly. Is it possible to get the chart into this document, either saving it on the server first somehow or not? </p>
  
  <p>I suspect I might be told to move over to d3 but I was just wondering if it is possible in <code>chart.js</code>?</p>
  
  <p><a href="https://i.stack.imgur.com/VD3dJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VD3dJ.png" alt="enter image description here"></a></p>