This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class VFChart_Server{ | |
public Opportunity opportunity {get;set;} | |
public VFChart_Server(ApexPages.standardController std){ | |
opportunity=(Opportunity)std.getRecord(); | |
} | |
public List<PieWedgeData> getPieData() { | |
List<PieWedgeData> data = new List<PieWedgeData>(); | |
data.add(new PieWedgeData('Jan', 30)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Opportunity" extensions="VFChart_Server" title="Pie Chart" sidebar="false"> | |
<apex:includeScript value="{!URLFOR($Resource.HighChart_5,'/api/js/jquery-1.11.3.min.js')}"/> | |
<script type="text/javascript" src="https://canvg.github.io/canvg/rgbcolor.js"></script> | |
<script type="text/javascript" src="https://canvg.github.io/canvg/StackBlur.js"></script> | |
<script type="text/javascript" src="https://canvg.github.io/canvg/canvg.js"></script> | |
<script> | |
$(document).ready(function() { | |
$("#save_img_att").click(function(){ | |
var mainDiv=document.getElementById('container'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RecentlyViewed[] recents = [ | |
SELECT Id, Name | |
FROM RecentlyViewed | |
ORDER BY LastViewedDate DESC | |
LIMIT 10 | |
]; | |
Set<String> types = new Set<String>(); | |
for (RecentlyViewed r : recents) { | |
types.add(String.valueOf(r.Id.getSObjectType())); | |
} |