6

I have to include a Pie Chart Report in a visual Force page. I tried to use with a iFrame tag. But seems like its working .

<apex:page showHeader="false" sidebar="false"> <apex:iframe src="/01Z5B0000004w7B"/>
</apex:page>

Please let me know , how to proceed further on this.

Thank you.

9

You can use analytics:reportChart instead.

<apex:page> 
  <analytics:reportChart reportId="01Z5B0000004w7B" >
  </analytics:reportChart>
</apex:page>

analytics:reportChart

Use this component to add Salesforce report charts to a Visualforce page. You can filter chart data to show specific results. The component is available in API version 29.0 or later.

Before you add a report chart, check that the source report has a chart in Salesforce app.

  • Hi Shailesh, Thanks for the reply. One query. I am getting the report with the footer text like " As of Today at 1:​33 AM NS_ERROR_FAILURE: " . How to get rid off this. I am not getting an attribute for this. Please let me know. Thanks in Advance. – Reshmi Smiju Oct 6 '16 at 16:10
  • @ReshmiSmiju - I am not completely sure if this is related to your report. If you can elaborate or update the question with your code, I would be able to help on this. – Shailesh Deshpande Oct 7 '16 at 6:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.