apex charts render as pdf

When using apex:chart, if the page has the renderAs="PDF", the charts don’t show up at all.


Visualforce Charts are rendered by JavaScript after the page has been initially rendered. PDF does not support JavaScript, and so those charts never have a chance to render before the PDF file is created. This is in direct contrast to Google Charts, which are rendered as images on the Google server before being delivered. You will need to use a image-based chart solution, such as Google Charts, in order to generate charts within the PDF file.

Source : Link , Question Author : sfdc , Answer Author : sfdcfox

Leave a Comment