title: How do I load Google Charts in node.js?
body: <p>When I attempt to load a Google Chart in node.js, nothing happens.</p>
  
  <p>I tried loading the <a href="https://developers.google.com/chart/interactive/docs/gallery/linechart#Example" rel="nofollow">first example</a> from the line chart docs in both zombie.js and jsdom, but the chart never loads in either case.</p>
  
  <p>The end goal is to retrieve the SVG data of the generated chart for export into an image or PDF.  So if an alternate method (server side using node.js or PHP) to achieve this is possible, I'm open to suggestions.</p>
  
  <p><strong>NOTE</strong>: I have successfully generated a images of a few charts using gChartPhp, but the requirements of this project state that the embedded version be the interactive version provided by the current API and the exported version be visually IDENTICAL to the embedded one (without being interactive, obviously).</p>
  
  <p><strong>Edit</strong>: I tagged <a href="http://phantomjs.org/" rel="nofollow">PhantomJS</a>, since that is the solution with which I ultimately went.</p>
  
  <p><em>Sorry for the lack of links, but the spam prevention mechanism will only allow me to post 2.</em></p>