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
CushtyCushty 

Opening a visualforce chart in a new window filtered

Hi,

I have 4 charts in visualforce page which I have put on the page layout of a custom object.  When a user clicks on the chart, It opens in the small visualforce window on the page, rather then oprning the filtered report in a new window....

How can I click on a chart and it opens the report in a new window, filtered.  Here is what I have so far, bearing in mind I am new to any sort of coding.  The below shows the code for the 4 charts that are on the page with filters.  I want to click on any chart and that chart opens up the full report filtered
Thanks

<apex:page standardController="pse__Proj__c">     
    <apex:pageBlock >
            <apex:pageBlockSection columns="4">        
                 <analytics:reportChart reportId="00Ow0000006woMg"
                     filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
                     size="small" cacheResults="false">
                 </analytics:reportChart> 

                 <analytics:reportChart reportId="00Ow0000006woN0"
                     filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
                     size="small" cacheResults="false">
                 </analytics:reportChart>

                 <analytics:reportChart reportId="00Ow0000006woMv"
                     filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
                     size="small" cacheResults="false">
                 </analytics:reportChart> 
                         
                 <analytics:reportChart reportId="00O7E000000OJLH"
                     filter="{column:'CUST_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
                     size="small" cacheResults="false">
                 </analytics:reportChart>                                               
          </apex:pageblocksection>
    </apex:pageBlock>
</apex:page>