public class CharVF1Controller {
public List<Opportunity> getChartData() {
List<Opportunity> Opp = [select name, amount, stageName from opportunity where amount!=null AND stageName!=null limit 10];
return Opp;
}
}
Below are some known limitations for this pilot feature: Visualforce charts will only render in browsers which support scalable vector graphics (SVG). For more information, see WC3 SVG Working Group. Visualforce charting uses JavaScript to draw the charts. These charts won't display in pages rendered as PDFs. Email clients do not generally support JavaScript execution in messages. Don't use Visualforce charting in email messages or email templates. Visualforce charting sends errors and messages to the JavaScript console. You'll want to keep a JavaScript debugging tool, such as Firebug, active during development.
If this answers you question, please mark it as "Best Answer" so it will help other community members too.
Thanks for posting your answer. I have developed barchart using SVG in visualforce page. SVG barchart is not shown in pdf when using renderAs pdf. Could you please help me on this. Is there any other workaround to display SVG chart in pdf?
Below are some known limitations for this pilot feature:
Visualforce charts will only render in browsers which support scalable vector graphics (SVG). For more information, see WC3 SVG Working Group.
Visualforce charting uses JavaScript to draw the charts. These charts won't display in pages rendered as PDFs.
Email clients do not generally support JavaScript execution in messages. Don't use Visualforce charting in email messages or email templates.
Visualforce charting sends errors and messages to the JavaScript console. You'll want to keep a JavaScript debugging tool, such as Firebug, active during development.
If this answers you question, please mark it as "Best Answer" so it will help other community members too.
Thanks for posting your answer.
I have developed barchart using SVG in visualforce page. SVG barchart is not shown in pdf when using renderAs pdf. Could you please help me on this.
Is there any other workaround to display SVG chart in pdf?