Next
Update
Prev
Send to Server

This sample demonstrates how to send the chart image to the server. Try to click on the button at the bottom left of the chart.

You can get the based64 code of the chart by calling the getSnapshot method of KoolChart.

...
<div class="button" style="float:left;" onclick="GetSnapshot()">Send to Server</div>
						
...

function GetSnapshot()
{
  ...
  
  var base64src = document.getElementById("chart1").getSnapshot();
  
  ...
}

© 2017 KoolChart. All rights reserved.