Unable to use charts in Email

Unable to use charts in Email

  

Can some one help me how to add charts in Email screen?
not sure if it's possible.
best bet, imho, save the chart as an image and include that in  the email.


i am able to save the chart in hard disk, but i want to save the chart in images folder in  service stuido itself. i am not able to find the option how to save that in images folder. can any one help me on this
can any one help me on this ?
i am able to save the chart in hard disk, but i want to save the chart in images folder in  service stuido itself. i am not able to find the option how to save that in images folder
Solution
Hi Nagesh,

First, the reason why charts in an e-mail do not work, is that charts are SVG (vector) images, and not many e-mail programs will render those correctly. Not to mention that there's probably a lot of JavaScript needed, and no sane e-mail program will run JavaScript.

Secondly, you are confusing some stuff. First, you need to save the chart server side, not client side as I assume you mean by "save the chart [to the] hard disk". However, this is not easily done (see below). Also, you talk about "images folder in Service Studio", but the images in Service Studio can only be added design-time, not run-time. However, the images end up in the /img directory, and are accesible via eSpaceName/img/ImageName.jpg, so if you can save the image server-side, you need to put it there.

The only way to save charts server site, as far as I know, is to use server-side rendering code like PhantomJS. But unless you are well-versed in JavaScript and C#, that's not going to be easy (you need to create an extension etc.). You may be able to use the Forge component Html2PdfConverter, but that seems to have problems with HighCharts charts, and I'm not sure it can output images instead of PDFs.
Solution
Thanks for the reply Hekhuis.

Yes i need to save my chart in server side, so that while generating mail i can dynamically add the chart image into mail.