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
harsha B R 9harsha B R 9 

Embed Report Charts in Visualforce Pages

Hi ,

I have embedded a Report on a VF page and added the VF page in the Record detail page of a object.
I have used analytics:reportChart tag and dynamically filtering the reports based on the Record ID. It is working as expected.

But, when a user clicks the report name or Refresh Date like "As of Yesterday 4:45 PM", the report is breaking and an instance of Salesforce is opening inside the report.

Please suggest a workaround which disables the click event on Report chart name.

Any help is highly appreciated.

Thanks & Regards,
Harsha BR
 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Harsha,

Greetings to you!

Please try below CSS:
a.analyticsCordaChart {
     pointer-events: none;
     cursor: default;
}

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
harsha B R 9harsha B R 9
Hi Khan Anas,

Thanks for your quick response.

I need on hover functionality for the Report chart. If I use CSS specified by you, I am losing the on hover functionality.

Thanks & Regards,
Harsha BR
harsha B R 9harsha B R 9
Hi Team,

Does anybody have any solution for this issue?

Thanks & Regards,
Harsha BR