We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Saving Chart without loading IFrame Typescript

Thread ID:

Created:

Updated:

Platform:

Replies:

145022 Jun 3,2019 01:15 AM UTC Jun 3,2019 08:40 AM UTC JavaScript - EJ 2 1
loading
Tags: Chart
Qi Luo
Asked On June 3, 2019 01:15 AM UTC

Hi,

I am wondering if it is possible i can generate the radar chart and save to a png file without loading iframe, or set the section invisible in the HTML page?

Thanks


Baby Palanidurai [Syncfusion]
Replied On June 3, 2019 08:40 AM UTC

Hi Qi, 

Greetings from Syncfusion. 

We have analyzed your query and we can achieve your requirement using export method. In that button click, we have export a chart into a PNG format.  

For more formation about export, kindly find the below documentation and demo link, 


Code snippet:  
<button id='export'>Export</button> 
          <div id="container"></div> 


import { Chart, RadarSeries, LineSeries, Export } from '@syncfusion/ej2-charts'; 
Chart.Inject(LineSeries, RadarSeries, Export) 

let chart: Chart = new Chart({ 
  // 
}); 
chart.appendTo('#container'); 

document.getElementById('export').onclick = function() { 
   chart.exportModule.export('PNG', 'chart'); 


Kindly revert us, if you need further assistance. We are always happy in assisting you. 

Regards, 
Baby. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon