Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / vfc_pieSeries
Created October 29, 2015 11:56
public class vfc_pieSeries{
public vfc_pieSeries(){
}
public List<PieWedgeData> getPieData() {
List<PieWedgeData> data = new List<PieWedgeData>();
List<AggregateResult> opps = [SELECT SUM(Amount) monthlyRevenue, COUNT(Name) numOppsClosedWon,
CALENDAR_MONTH(CloseDate) theMonth