function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Athira VenugopalAthira Venugopal 

Custom salesforce dashboards on visual force pages, Is there any way to do this?

I have tried using apex:iframe, but it displays a blank page

<apex:page showheader="true" sidebar="true">
<apex:iframe src="/01Z2w000000ooGVEAY/" height="600px" width="70%"/>
</apex:page>
Then I had tried using wave:dashboard
<apex:page showheader="true" sidebar="true">
<wave:dashboard dashboardId="01Z2w000000ooGVEAY" showTitle="true" height="800px" openLinksInNewWindow="true" /> </apex:page>
ShirishaShirisha (Salesforce Developers) 
Hi Athira,

Greetings!

I would suggest you to use the complete URL to see,if it works.

Sample code:
<apex:page >
 <apex:iframe src="https://na12.salesforce.com/01ZU0000000NHAt" scrolling="true" id="theIframe"/>
</apex:page>

Reference:

https://www.infallibletechie.com/2012/07/how-to-display-dashboard-using-visual.html

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri