title: Exporting chart.js charts to svg using canvas2svg.js
body: <p>I am trying to export <a href="http://www.chartjs.org/" rel="noreferrer">chart.js</a> chart to svg using <a href="https://gliffy.github.io/canvas2svg/" rel="noreferrer">canvas2svg.js</a>.</p>
  
  <p>It does not seems to be working, since chart.js refuses to use 'fake' canvas created by canvas2svg.js</p>
  
  <p><strong>My HTML code:</strong></p>
  
  <pre><code>&lt;div style="position: relative; height:20vh; width:100vh"&gt;
  &lt;canvas id="radarCanvas" &gt;&lt;/canvas&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>My script:</strong></p>
  
  <pre><code>var ctx = document.getElementById("radarCanvas").getContext("2d");
  
  var radarChart = new Chart(ctx, graphData);  // Works fine
  
  
  // Create canvas2svg 'fake' context
  var c2s = C2S(500,500);
  
  // new chart on 'fake' context fails:
  var mySvg = new Chart(c2s, graphData);
  // Result (console):
  // "Failed to create chart: can't acquire context from the given item"
  </code></pre>
  
  <p>I've posted full example on <a href="https://codepen.io/bocko/pen/XaMJzw?editors=1011" rel="noreferrer">Codepen</a> (Sorry for long js there, I could not find a link from which to import canvas2svg so I pasted it at the beginnning of the script.)</p>