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
Sreenivasulu AdipudiSreenivasulu Adipudi 

Hi, I want to restrict onClick event on <analytics:reportChart> but I want to see the details Onhover.

I am using <analytics:reportChart> in a visualforce page. I added this Visualforce page to Account Page layout. My requirement is I need to restrict the onClick event for the user, but the user can be able to see the details Onhover the mouse pointer. How can I restrict onclick and enable Onhover on <analytics:reportChart>.

Can anyone please provide a solution. Thanks in advance.
Best Answer chosen by Sreenivasulu Adipudi
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

Please refer to the below link which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/46269/visualforce-reportchart-can-we-disable-access-to-report-behind-it

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

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

Please refer to the below link which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/46269/visualforce-reportchart-can-we-disable-access-to-report-behind-it

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
This was selected as the best answer
Sreenivasulu AdipudiSreenivasulu Adipudi
Hi Khan,
Thanks for the quick reply.

This solution is looking good. But it disabled all mouse events. I want to restrict the onClick event and I need to see details on hover.