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
Craig Coates JWCraig Coates JW 

Custom LEX Dashboard built in VF - is it possible?

Fellow devs, lend my your ears, or eyes as it may be.

Firstly, apologies if this has already been covered but I couldn't find the same use case. That, or I'm a bit blind.

I have a need to create a custom dashboard for Accounts. Think your old school Classic URL parameter hack to Report filters, but on a much bigger scale and in LEX to boot. Biggest issue to overcome is URL parameters don't work for Dashboard filters so I have a question thusly.

Is it possible to create a Visualforce page which renders as a Dashboard in the Lightning UI which pulls in multiple dashboard charts using dedicated url filters?
If so, suggestions on where to start? I'm reasonably comfortable on building VF for Classic, but custom LEX stuff is still a scary beast.

FYI I've crossposted to r/SalesforceDevelopers and SE so apologies if you see the same question more than once.

Thanks in advance
Raj VakatiRaj Vakati
you can do it with analytics:reportChart .. sample code is here 
 
<apex:page standardController="Account" showHeader="false" lightningStylesheets="true" >
    <style>
        
        #dispnone{
        pointer-events: none;
        }
    </style>
    <div id="dispnone" >
        <analytics:reportChart cacheAge="10" cacheResults="false" 
                               reportid="00O46000004NGi8EAG" size="large" 
                               >
        </analytics:reportChart> 
    </div>
    
</apex:page>