cancel
Showing results for 
Search instead for 
Did you mean: 
Liliia_DevX
Sisense Team Member
Sisense Team Member

How to Remove or Hide the "Analyze It" Button from a Specific Widget

This article explains how to remove or hide the "Analyze It" button from a specific widget. 

Please note if you would like to remove the button from all widgets in all dashboards, you can disable all Trends feature in the Admin tab > App Configuration > Feature Management > toggle off "Trend Advanced Models."

Screenshot 2023-07-20 at 14.47.40.png

If you need to hide the "Analyze It" button on all widgets within a particular dashboard, please use the dashboard script from the article "Removing the "Analyze It" button from your Dashboard Widgets."

To remove or hide "Analyze It" for a particular widget, please follow the steps below:

  1. Open a widget in edit mode by pressing the pencil icon. 
  2. Click the three dots menu and choose "Edit Script."
  3. Copy and paste the following script into the "Edit Script" section and press "Save."

 

 

 

widget.on("ready", function(widget) {
  $('[widgetid="' + widget.oid + '"]').find('.analyze-it-button').remove()
})​

 

 

4.  In the widget, press "Apply" in edit mode. Then refresh the browser page to check the results.

 

Before:

Liliia_DevX_0-1689854173814.png

After:

Liliia_DevX_1-1689854201203.png

Please feel free to adjust this example script to your needs and share your solutions with us below!

We hope this helps! 

Disclaimer: Please note that this blog post contains one possible custom workaround solution for users with similar use cases. We cannot guarantee that the custom code solution described in this post will work in every scenario or with every Sisense software version. As such, we strongly advise users to test solutions in their own environment prior to deploying them to ensure that the solutions proffered function as desired in their environment. For the avoidance of doubt, the content of this blog post is provided to you “as-is” and without warranty of any kind, express, implied, or otherwise, including without limitation any warranty of security and or fitness for a particular purpose. The workaround solution described in this post incorporates custom coding, which is outside the Sisense product development environment and is, therefore, not covered by Sisense warranty and support services.

Version history
Last update:
‎02-13-2024 01:09 PM
Updated by:
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: