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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to generate chart image in background ?

Thread ID:

Created:

Updated:

Platform:

Replies:

121546 Dec 28,2015 12:56 PM UTC Dec 29,2015 11:38 AM UTC JavaScript 1
loading
Tags: ejChart
OSubachev
Asked On December 28, 2015 12:56 PM UTC

I have some initial data and need to generate image file containing chart based on this data.
So I need to generate chart image in background without displaying any chart control.
I see that every Web, Desktop or Mobile Syncfusion's product contains Chart control.
But they are visual controls, while I need no visuality at all.
Is it possible to perform such task with the help of some Syncfusion product ?

Oleg Subachev

Sanjith Kesavan [Syncfusion]
Replied On December 29, 2015 11:38 AM UTC

Hi Oleg Subachev,
We have analyzed your query. Please find the response for your query in the below table.

Platform

Response

Java script

We can achieve your requirement in javascript by setting the display property of the <div> as “none”. Please find the below code example.




Now as per your requirement visibility of the chart is none. In the DOMCotentLoaded event we have written the following code.



In the above code we have exported the chart to image. We have prepared the sample as per your requirement. Please find the sample from below location.

Sample Link: http://www.syncfusion.com/downloads/support/forum/121546/ze/Script1739628175


Window Form

We can achieve your requirement in window form by saving the chart image in the form load event without binding the chart control to the form. Please find the below code example.




So when the form is loaded then chart is exported to image and chart is not added in the form. We have prepared the sample as per your requirement. Please find the sample from below location.

Sample Link: http://www.syncfusion.com/downloads/support/directtrac/121546/ze/WindowsForms-1611584201


WPF

In WPF platform also we can perform able to export the chart even if the chart is not displayed. We have prepared the sample as per your requirement. Please find the sample from below location.

Sample Link: SfChartToImage



Please let us know if you have any concern.

Regards,
Sanjith K.

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.

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

;