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
Ashish KumarAshish Kumar 

VF component with chart not loading in Email Template

Hey Guys,
I am having a VF component which creates a pie chart. When I use that component in my VF page charts renders properly but when I embed it in Email Template chart does not render at all. 
Please suggest some way to send chart as in email template.
Below is the component code which I am using 
<apex:component controller="PieChartController" access="global">
    <apex:chart height="350" width="450" data="{!pieData}">
        <apex:pieSeries dataField="data" labelField="name"/>
        <apex:legend position="right"/>
    </apex:chart>
</apex:component>
---------------------------------------
PieChartController Class
 
public class PieChartController {
    public List<PieWedgeData> getPieData() {
        List<PieWedgeData> data = new List<PieWedgeData>();
        data.add(new PieWedgeData('Jan', 30));
        data.add(new PieWedgeData('Feb', 15));
        data.add(new PieWedgeData('Mar', 10));
        data.add(new PieWedgeData('Apr', 20));
        data.add(new PieWedgeData('May', 20));
        data.add(new PieWedgeData('Jun', 5));
        return data;
    }
    // Wrapper class
    public class PieWedgeData {

 
        public String name { get; set; }
        public Integer data { get; set; }

 
        public PieWedgeData(String name, Integer data) {
            this.name = name;
            this.data = data;
        }
    }
}