How can we use quick chart to populate a dynamic chart in salesforce PDF template?
Hi @Nitin,
Yes, QuickChart images can be embedded in a Salesforce PDF template. Have a look at the Visualforce PDF guide in our documentation.
In general, the steps you’d follow are:
-
Create your desired chart using QuickChart’s Chart Builder or API.
-
Get the URL of the rendered chart image by following the instructions provided in the documentation.
-
Insert the URL as an image in your Salesforce PDF template.
I followed the example provided, the chart displays correctly when the visualforce page is rendered as a word document, but displays as a broken image still when the visualforce page is rendered as a pdf. Has anyone been able to correctly render the chart in a pdf? I’ve inspected the url generated and it is correct.
I added a remote site record with “https://quickchart.io” as the url and the chart displayed in the pdf.
Thanks @irefuse for following up here - and sorry for the mistake in the documentation. I’ll get it updated.