function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
iqbaliqbal 

Chart in Visualforce Email templates

Hi,

Can we create Bar charts in visualforce email templates?

 

Please let me know if this is feasible.

 

Thanks.

 

--Asif

kxa422kxa422

I think that using Google Charts could solve your problem.

iqbaliqbal

Thanks for your reply.

Do you have any basic code examples through which i can start.  Please let me know. Thanks.

kxa422kxa422

If you insert something like that in your email template, the chart should appear.

 

< img src="http://chart.apis.google.com/chart?cht=p&chtt=Profile+Mix&chs=500x250&chd=t:36.1,7.7,56.2&chl=EOS+36.1%25|Business+Machines+7.7%25|Rest+of+Business+56.2%25&chco=9999FF|993366|FFFFCC" width="375" height="187" / >

 

For all detail about google chart, you can have a look on thei documentation.

skompoltskompolt

Read this.... https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_advanced_google_charts.htm