Forum Discussion

Kade's avatar
Kade
Data Storage
08-15-2024
Solved

Turning off click to filter on Widget

Hello everyone,

Is it possible to disable the functionality that allows users to click on the legend in the widget to filter data?

Currently, when a legend is clicked to filter out a category, it disrupts the y-axis of the stacked bar chart, and the issue persists even when the legend is clicked again to restore the data.

Setting a maximum value for the y-axis isn't effective because all four values change dynamically based on the dashboard filters.

Thank you.

Thank you.

 

 

  • Hey Kade 

    Please try to use the following widget script to disable the Clickable Legend. 
    the Script disable the pointer events such as click. 

    widget.on('ready', function(se, ev){
    // Disable pointer events to make the legend unclickable
    $('.highcharts-legend').css('pointer-events', 'none');
    });

    Best Regards 

4 Replies

  • AssafHanina's avatar
    AssafHanina
    Sisense Employee

    Hey Kade 

    Please try to use the following widget script to disable the Clickable Legend. 
    the Script disable the pointer events such as click. 

    widget.on('ready', function(se, ev){
    // Disable pointer events to make the legend unclickable
    $('.highcharts-legend').css('pointer-events', 'none');
    });

    Best Regards 

    • Kade's avatar
      Kade
      Data Storage

      This works! Thank you.

  • Hi Kade,

    Thank you for reaching out. Have you talked with Support about this issue? It seems like it might be a bug that needs to be fixed, or is fixed in a newer version.

  • DRay This isn't a Sisense bug, but a bug created by the script we have that is hiding other values. To bypass this we want a script that will ultimately disable any type of filtering this widget when it is clicked on. When the legend or the view is clicked we don't want anything to happen. 

    Does anyone have a script for that?